From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/ipoe-server.xml.in | 81 ++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 op-mode-definitions/ipoe-server.xml.in (limited to 'op-mode-definitions/ipoe-server.xml.in') diff --git a/op-mode-definitions/ipoe-server.xml.in b/op-mode-definitions/ipoe-server.xml.in new file mode 100644 index 000000000..c20d3aa2a --- /dev/null +++ b/op-mode-definitions/ipoe-server.xml.in @@ -0,0 +1,81 @@ + + + + + + + Clear ipoe-server sessions or process + + + + + Clear ipoe-server session + + + + + Clear ipoe-server session by username + + + + + ${vyos_op_scripts_dir}/ipoe-control.py --action="terminate" --selector="username" --target="$5" + + + + Clear ipoe-server session by Session ID + + + + + ${vyos_op_scripts_dir}/ipoe-control.py --action="terminate" --selector="sid" --target="$5" + + + + Clear ipoe-server session by interface + + + + + ${vyos_op_scripts_dir}/ipoe-control.py --action="terminate" --selector="if" --target="$5" + + + + + + + + + + + + show ipoe-server status + + + + + Show active IPoE server sessions + + ${vyos_op_scripts_dir}/ipoe-control.py --action="show_sessions" + + + + Show IPoE server statistics + + ${vyos_op_scripts_dir}/ipoe-control.py --action="show_stat" + + + + + + + + + + show ipoe-server status + + ${vyos_op_scripts_dir}/ipoe-control.py --action="restart" + + + + -- cgit v1.2.3