:local cpes [/ip neighbor print detail as-value where interface~"ether" and identity~"AP"];
:foreach cpe in=$cpes do={
/interface set [/interface find name=[:pick ($cpe->"interface") 0 [:find ($cpe->"interface") "b"]]] comment=($cpe->"identity");
}
I have this script above that I use to label interface comments by what the LLDP name is.. Well that example is just for APs that have AP part of the identity. I can play with the scrips to work in different ways for switches or ap ports .. But what I also wanted was to be able to match the comment on the interfaces to the bridge ports. I was wondering if that was something that could be done with the scripts