Hi!
Writing notdhcp has been much more of a rabbit hole
than expected. But! We
want to be able to query switch port link status for purposes of the GUI
anyway and now we know that this is currently impossible (short of allowing
the running of arbitrary commands from the gui). I think once we've gotten
all this working I'll go back and move the switch status polling code over
to a fork of netifd and then make notdhcp use ubus to listen for the link
state changes.
One interesting addition I found in AirOS firmware is also a way to dump
MAC addresses from the switch:
https://github.com/ninuxorg/openwrt-modified-by-ubiquiti/compare/0f06f302ca…
Might be useful for you together with just port status.
Mitar
--
http://mitar.tnode.com/
https://twitter.com/mitar_m