diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-25 11:18:31 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-25 11:18:31 +0100 |
commit | 9d68d23a2455cd11f77af6d94a021812771f2356 (patch) | |
tree | 16e752084b00522f1b634f32a6a9cf7d8e0e2194 /op-mode-definitions/connect-disconnect.xml | |
parent | 0023e6d51f2c7d065eac250b21af9a12544b9ab8 (diff) | |
parent | bfe06683fd7dd50abc2ad5067a598f4ecf6b9a19 (diff) | |
download | vyos-1x-9d68d23a2455cd11f77af6d94a021812771f2356.tar.gz vyos-1x-9d68d23a2455cd11f77af6d94a021812771f2356.zip |
Merge branch 'pppoe-t2070' of github.com:c-po/vyos-1x into current
* 'pppoe-t2070' of github.com:c-po/vyos-1x:
pppoe: T2070: rewrite (dis-)connect op-mode commands in XML and Python
gitignore: fix ignore pattern of all debhelper files
pppoe: T2055: make logfile owned by root/vyattacfg
pppoe: T1318: validate existing source-interface
Diffstat (limited to 'op-mode-definitions/connect-disconnect.xml')
-rw-r--r-- | op-mode-definitions/connect-disconnect.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/op-mode-definitions/connect-disconnect.xml b/op-mode-definitions/connect-disconnect.xml new file mode 100644 index 000000000..77c334180 --- /dev/null +++ b/op-mode-definitions/connect-disconnect.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="connect"> + <properties> + <help>Establish a connection</help> + </properties> + <children> + <tagNode name="interface"> + <properties> + <help>Bring up a connection-oriented network interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_pppoe_peers.sh</script> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3"</command> + </tagNode> + </children> + </node> + <node name="disconnect"> + <properties> + <help>Take down a connection</help> + </properties> + <children> + <tagNode name="interface"> + <properties> + <help>Take down a connection-oriented network interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_pppoe_peers.sh</script> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/connect_disconnect.py --disconnect "$3"</command> + </tagNode> + </children> + </node> +</interfaceDefinition> |