Hello.
How i can check is eth port into bridge already or not? In script.
foreach i in=[interface bridge port find] do={ local name1 wlan1 local name2 [interface bridge port get value-name=interface $i] if ($name1 = $name2) do={ log error "interface $name1 is in a bridge"} \ else={log error "interface $name1 is not in a bridge"}}
Thanks! How i can use into the scripr "empty answer" of this example?:local INTNAME ether1
:put [/interface bridge port find where interface=$INTNAME]
[greek@RT] > :if ([/interface bridge port get number=[/interface bridge port find where point-to-point-port=yes ] interface] = "work") do={:put "in_bridge"} else={:put "not_in_bridge"}
in_bridge
[greek@RT] >
:if ([/interface bridge port find where point-to-point-port=yes] != "") do={ :if ([/interface bridge port get number=[/interface bridge port find where point-to-point-port=yes ] interface] = "work") do={:put "in_bridge"} } else={:put "not_in_bridge"}