Error trying to read on-up context for PPPoE profile in v7.4.1

Hi,

I’m having problems when trying to read PPPoE profile context in v7.4.1. As per documentation, it seems the following items are exposed as context for this script: https://help.mikrotik.com/docs/display/ROS/PPP+AAA#PPPAAA-UserProfiles

  • user
  • local-address
  • remote-address
  • caller-id
  • called-id
  • interface

I would like to read interface value, but when printing this in logs, this is what I get (which is not the interface name, what I think is the expected)
interface.png
On-up script, inside PPPoE custom profile (copy from default)

/log warning $interface

Could someone test the same in v6 and check if that is printing the correct interface name there? Just to confirm if it is a bug or not. And please tell me if you think I’m doing something wrong, script couldn’t be easier. For reference, I was able to read properly “local-address” field, printing the current public IP for this interface.

Thanks!

Work exactly as expected.
Also on v6 you obtain the id of the interface.
For get the interface name you must request the name…

/log warning [/interface get $interface name]

Amazing, thanks rextended!