I am currently using a custom script to try out MAC pinning on a single port.
For this I have to modify the FDB of the switch.
But - every time the link gets down, the fdb table for this interface is flushed.
There is no hotplugd event when the interface gets back up again, so I have to manually run the script - or write another script for a periodic check.
That's where I found out that there is no hotplugd event for this case.
https://git.openwrt.org/?p=project/netifd.git;a=blob;f=interface-event.c;hb=HEAD#l132
I am currently using a custom script to try out MAC pinning on a single port.
For this I have to modify the FDB of the switch.
But - every time the link gets down, the fdb table for this interface is flushed.
There is no hotplugd event when the interface gets back up again, so I have to manually run the script - or write another script for a periodic check.
That's where I found out that there is no hotplugd event for this case.
https://git.openwrt.org/?p=project/netifd.git;a=blob;f=interface-event.c;hb=HEAD#l132