From f2cc87a259df1d2ab4d0a7eb366224a238422048 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 2 Aug 2020 19:36:39 +0200 Subject: op-mode: use individual XML files for connect and disconnect --- op-mode-definitions/connect.xml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 op-mode-definitions/connect.xml (limited to 'op-mode-definitions/connect.xml') diff --git a/op-mode-definitions/connect.xml b/op-mode-definitions/connect.xml new file mode 100644 index 000000000..1ec62949a --- /dev/null +++ b/op-mode-definitions/connect.xml @@ -0,0 +1,29 @@ + + + + + Establish connection + + + + + Connect to device attached to serial console server + + service console-server device + + + /usr/bin/console "$3" + + + + Bring up a connection-oriented network interface + + interfaces pppoe + interfaces wirelessmodem + + + sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3" + + + + -- cgit v1.2.3