diff --git a/op-mode-definitions/monitor-bandwidth-test.xml.in b/op-mode-definitions/execute-bandwidth-test.xml.in similarity index 93% rename from op-mode-definitions/monitor-bandwidth-test.xml.in rename to op-mode-definitions/execute-bandwidth-test.xml.in index 9655912800..1581d5c256 100644 --- a/op-mode-definitions/monitor-bandwidth-test.xml.in +++ b/op-mode-definitions/execute-bandwidth-test.xml.in @@ -1,6 +1,6 @@ - + @@ -39,7 +39,7 @@ <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - ${vyos_op_scripts_dir}/monitor_bandwidth_test.sh "$5" + ${vyos_op_scripts_dir}/execute_bandwidth_test.sh "$5" @@ -48,7 +48,7 @@ <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - ${vyos_op_scripts_dir}/monitor_bandwidth_test.sh "$5" "-u" + ${vyos_op_scripts_dir}/execute_bandwidth_test.sh "$5" "-u" diff --git a/op-mode-definitions/execute-shell.xml.in b/op-mode-definitions/execute-shell.xml.in new file mode 100644 index 0000000000..dfdc1e3716 --- /dev/null +++ b/op-mode-definitions/execute-shell.xml.in @@ -0,0 +1,32 @@ + + + + + + + Execute shell + + + + + Execute shell in given Network Namespace + + netns name + + + sudo ip netns exec $4 su - $(whoami) + + + + Execute shell in given VRF instance + + vrf name + + + sudo ip vrf exec $4 su - $(whoami) + + + + + + diff --git a/op-mode-definitions/force-wamp.xml.in b/op-mode-definitions/execute-wamp.xml.in similarity index 96% rename from op-mode-definitions/force-wamp.xml.in rename to op-mode-definitions/execute-wamp.xml.in index dbb205c6b9..bcceedc53b 100644 --- a/op-mode-definitions/force-wamp.xml.in +++ b/op-mode-definitions/execute-wamp.xml.in @@ -1,6 +1,6 @@ - + diff --git a/op-mode-definitions/force-netns.xml.in b/op-mode-definitions/force-netns.xml.in deleted file mode 100644 index b9dc2c1e82..0000000000 --- a/op-mode-definitions/force-netns.xml.in +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - Execute shell in given Network Namespace - - netns name - - - sudo ip netns exec $3 su - $(whoami) - - - - diff --git a/op-mode-definitions/force-vrf.xml.in b/op-mode-definitions/force-vrf.xml.in deleted file mode 100644 index 71f50b0d28..0000000000 --- a/op-mode-definitions/force-vrf.xml.in +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - Execute shell in given VRF instance - - vrf name - - - sudo ip vrf exec $3 su - $(whoami) - - - - diff --git a/op-mode-definitions/telnet.xml.in b/op-mode-definitions/telnet.xml.in index c5bb6d2837..2cacc6a261 100644 --- a/op-mode-definitions/telnet.xml.in +++ b/op-mode-definitions/telnet.xml.in @@ -1,30 +1,35 @@ - - - Telnet to a node - + - + - Telnet to a host - - <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - + Telnet to a node - /usr/bin/telnet $3 - + - Telnet to a host:port + Telnet to a host - <0-65535> + <hostname> <x.x.x.x> <h:h:h:h:h:h:h:h> - /usr/bin/telnet $3 $5 + /usr/bin/telnet $4 + + + + Telnet to a host:port + + <0-65535> + + + /usr/bin/telnet $4 $6 + + - + + diff --git a/op-mode-definitions/wake-on-lan.xml.in b/op-mode-definitions/wake-on-lan.xml.in index 625cf40564..d4589c868d 100644 --- a/op-mode-definitions/wake-on-lan.xml.in +++ b/op-mode-definitions/wake-on-lan.xml.in @@ -19,7 +19,7 @@ Station (MAC) address to wake up - sudo /usr/sbin/etherwake -i "$3" "$5" + sudo /usr/sbin/etherwake -i "$4" "$6" diff --git a/src/op_mode/monitor_bandwidth_test.sh b/src/op_mode/execute_bandwidth_test.sh similarity index 100% rename from src/op_mode/monitor_bandwidth_test.sh rename to src/op_mode/execute_bandwidth_test.sh