From 35d8f6ecc6b657bb842619eff15e8e71a66b7891 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 6 Jun 2020 16:19:26 +0200 Subject: op-mode: ethernet: T2546: add "show interfaces loopback" --- op-mode-definitions/show-interfaces-dummy.xml | 1 + op-mode-definitions/show-interfaces-loopback.xml | 42 ++++++++++++++++++++++++ op-mode-definitions/show-interfaces.xml | 27 +++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 op-mode-definitions/show-interfaces-loopback.xml create mode 100644 op-mode-definitions/show-interfaces.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-interfaces-dummy.xml b/op-mode-definitions/show-interfaces-dummy.xml index 02e03518d..7c24c6921 100644 --- a/op-mode-definitions/show-interfaces-dummy.xml +++ b/op-mode-definitions/show-interfaces-dummy.xml @@ -25,6 +25,7 @@ Show dummy interface information + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=dummy --action=show-brief diff --git a/op-mode-definitions/show-interfaces-loopback.xml b/op-mode-definitions/show-interfaces-loopback.xml new file mode 100644 index 000000000..b30b57909 --- /dev/null +++ b/op-mode-definitions/show-interfaces-loopback.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show loopback interface information + + interfaces loopback + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified dummy interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show loopback interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=loopback --action=show-brief + + + + Show detailed dummy interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=dummy --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces.xml b/op-mode-definitions/show-interfaces.xml new file mode 100644 index 000000000..39b0f0a2c --- /dev/null +++ b/op-mode-definitions/show-interfaces.xml @@ -0,0 +1,27 @@ + + + + + + + Show network interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --action=show-brief + + + + Show network interface counters + + ${vyos_op_scripts_dir}/show_interfaces.py --action=show-count + + + + Show detailed information of all interfaces + + ${vyos_op_scripts_dir}/show_interfaces.py --action=show + + + + + + -- cgit v1.2.3