summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-22 11:21:15 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-22 11:21:15 +0200
commit9ed0cc8221778b3fdcb9f4fab4421eaca0d06a6d (patch)
treeee104a7cb5a74ef983ee6de8c448fc7db6d817eb
parent2005b6e98d66756eabd163d047e3ce4b365d4c30 (diff)
downloadvyos-1x-9ed0cc8221778b3fdcb9f4fab4421eaca0d06a6d.tar.gz
vyos-1x-9ed0cc8221778b3fdcb9f4fab4421eaca0d06a6d.zip
pppoe: T2380: drop superfluous list_pppoe_peers.sh
-rw-r--r--op-mode-definitions/connect-disconnect.xml4
-rw-r--r--op-mode-definitions/show-interfaces-pppoe.xml4
-rwxr-xr-xsrc/completion/list_pppoe_peers.sh6
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