diff options
-rw-r--r-- | op-mode-definitions/connect-disconnect.xml | 4 | ||||
-rw-r--r-- | op-mode-definitions/show-interfaces-pppoe.xml | 4 | ||||
-rwxr-xr-x | src/completion/list_pppoe_peers.sh | 6 |
3 files changed, 4 insertions, 10 deletions
diff --git a/op-mode-definitions/connect-disconnect.xml b/op-mode-definitions/connect-disconnect.xml index 77c334180..cbce2d9ef 100644 --- a/op-mode-definitions/connect-disconnect.xml +++ b/op-mode-definitions/connect-disconnect.xml @@ -9,7 +9,7 @@ <properties> <help>Bring up a connection-oriented network interface</help> <completionHelp> - <script>${vyos_completion_dir}/list_pppoe_peers.sh</script> + <path>interfaces pppoe</path> </completionHelp> </properties> <command>sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3"</command> @@ -25,7 +25,7 @@ <properties> <help>Take down a connection-oriented network interface</help> <completionHelp> - <script>${vyos_completion_dir}/list_pppoe_peers.sh</script> + <path>interfaces pppoe</path> </completionHelp> </properties> <command>sudo ${vyos_op_scripts_dir}/connect_disconnect.py --disconnect "$3"</command> diff --git a/op-mode-definitions/show-interfaces-pppoe.xml b/op-mode-definitions/show-interfaces-pppoe.xml index f9903ee08..cd72bff7d 100644 --- a/op-mode-definitions/show-interfaces-pppoe.xml +++ b/op-mode-definitions/show-interfaces-pppoe.xml @@ -8,7 +8,7 @@ <properties> <help>Show PPPoE interface information</help> <completionHelp> - <script>${vyos_completion_dir}/list_pppoe_peers.sh</script> + <path>interfaces pppoe</path> </completionHelp> </properties> <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4"</command> @@ -17,7 +17,7 @@ <properties> <help>Show specified wirelessmodem interface statistics</help> <completionHelp> - <script>${vyos_completion_dir}/list_pppoe_peers.sh</script> + <path>interfaces pppoe</path> </completionHelp> </properties> <command>/usr/sbin/pppstats $4</command> diff --git a/src/completion/list_pppoe_peers.sh b/src/completion/list_pppoe_peers.sh deleted file mode 100755 index 382a29264..000000000 --- a/src/completion/list_pppoe_peers.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -if [ -d /etc/ppp/peers ]; then - cd /etc/ppp/peers - ls pppoe* -fi |