Page 1 of 1

"Not-Equal" operator in ROS parameter using Variable

Posted: Thu Jun 04, 2015 7:08 pm
by celicas
"Not-Equal" operator for e.g. "in-interface" works fine
/ip firewall filter> :local iface e5 ; add in-interface=!e5 chain=prerouting
"Equal" operator using variable also works fine
/ip firewall filter> :local iface e5 ; add in-interface=$iface chain=prerouting
"Not-Equal" operator is not accepted using variable
/ip firewall filter> :local iface e5 ; add in-interface=!$iface chain=prerouting
expected interface value (line 1 column 37)
/ip firewall filter> :local iface e5 ; add in-interface=!($iface) chain=prerouting
expected interface value (line 1 column 37)
/ip firewall filter> :local iface e5 ; add in-interface!=($iface) chain=prerouting
expected end of command (line 1 column 23)
Thank you in advance!

Re: "Not-Equal" operator in ROS parameter using Variable

Posted: Fri Jun 05, 2015 9:53 am
by emils
/ip firewall filter> :local iface e5 ; add in-interface="!$iface" chain=prerouting

Re: "Not-Equal" operator in ROS parameter using Variable

Posted: Fri Jun 05, 2015 3:42 pm
by celicas
Thank you!