How remove master-port on RoS for both new and old RoS?
Posted: Thu May 10, 2018 4:30 pm
Hello,
what I want to achieve is script for cleaning configuration in ROS and then do my universal configuration which is using bridges.
For older ROS (than 6.41+) to be compatible, I need to remove master-port configuration in "/interface ethernet". Still on older ROS, I can do:
But when I run this on 6.41+, I get error message for wrong syntax. I get it, there is no master-port option, but what if I need to run this command only on older ROS? I tried something like:
But I still got syntax-error message for that line where master-port should be set to none, even if this code should not be executed (because length for finding interfaces with master-port is 0).
Is there any way how to remove master-port on older ROS before adding bridges which will work on new ROS too, so I can have one script?
Thank you
what I want to achieve is script for cleaning configuration in ROS and then do my universal configuration which is using bridges.
For older ROS (than 6.41+) to be compatible, I need to remove master-port configuration in "/interface ethernet". Still on older ROS, I can do:
Code: Select all
/interface ethernet set [find] master-port=none
Code: Select all
:if ([:len [/interface ethernet find master-port="none"]]>0) do={
:do {
/interface ethernet set [find] master-port=none
} on-error={ }
}
Is there any way how to remove master-port on older ROS before adding bridges which will work on new ROS too, so I can have one script?
Thank you