From 459e32b3697396d032d50e9b5b5ab98518ce5cec Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 6 Jun 2020 16:27:09 +0200 Subject: op-mode: T2546: migrate show interfaces tunnel,input,pseudo-ethernet,l2tpv3 ... Migrate additional show commands to XML * show interfaces tunnel ... * show interfaces input ... * show interfaces pseudo-ethernet ... * show interfaces l2tpv3 ... * show interfaces bridge ... * show interfaces vti ... * show interfaces vxlan ... --- op-mode-definitions/show-interfaces-bonding.xml | 59 ++++++++++++++++++++++ op-mode-definitions/show-interfaces-bridge.xml | 42 +++++++++++++++ op-mode-definitions/show-interfaces-input.xml | 42 +++++++++++++++ op-mode-definitions/show-interfaces-l2tpv3.xml | 42 +++++++++++++++ .../show-interfaces-pseudo-ethernet.xml | 42 +++++++++++++++ op-mode-definitions/show-interfaces-tunnel.xml | 42 +++++++++++++++ op-mode-definitions/show-interfaces-vti.xml | 42 +++++++++++++++ op-mode-definitions/show-interfaces-vxlan.xml | 42 +++++++++++++++ 8 files changed, 353 insertions(+) create mode 100644 op-mode-definitions/show-interfaces-bonding.xml create mode 100644 op-mode-definitions/show-interfaces-bridge.xml create mode 100644 op-mode-definitions/show-interfaces-input.xml create mode 100644 op-mode-definitions/show-interfaces-l2tpv3.xml create mode 100644 op-mode-definitions/show-interfaces-pseudo-ethernet.xml create mode 100644 op-mode-definitions/show-interfaces-tunnel.xml create mode 100644 op-mode-definitions/show-interfaces-vti.xml create mode 100644 op-mode-definitions/show-interfaces-vxlan.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-interfaces-bonding.xml b/op-mode-definitions/show-interfaces-bonding.xml new file mode 100644 index 000000000..568b215af --- /dev/null +++ b/op-mode-definitions/show-interfaces-bonding.xml @@ -0,0 +1,59 @@ + + + + + + + + + Show bonding interface information + + interfaces bonding + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified bonding interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + Show specified virtual network interface (vif) information + + interfaces bonding ${COMP_WORDS[3]} vif + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" + + + + Show summary of specified virtual network interface (vif) information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief + + + + + + + + Show bonding interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bonding --action=show-brief + + + + Show detailed bonding interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bonding --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-bridge.xml b/op-mode-definitions/show-interfaces-bridge.xml new file mode 100644 index 000000000..85fde95b5 --- /dev/null +++ b/op-mode-definitions/show-interfaces-bridge.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show bridge interface information + + interfaces bridge + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified bridge interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show bridge interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bridge --action=show-brief + + + + Show detailed bridge interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=bridge --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-input.xml b/op-mode-definitions/show-interfaces-input.xml new file mode 100644 index 000000000..15e8203e5 --- /dev/null +++ b/op-mode-definitions/show-interfaces-input.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show input interface information + + interfaces input + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified input interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show input interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=input --action=show-brief + + + + Show detailed input interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=input --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-l2tpv3.xml b/op-mode-definitions/show-interfaces-l2tpv3.xml new file mode 100644 index 000000000..60fee34a1 --- /dev/null +++ b/op-mode-definitions/show-interfaces-l2tpv3.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show L2TPv3 interface information + + interfaces l2tpv3 + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified L2TPv3 interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show L2TPv3 interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=l2tpv3 --action=show-brief + + + + Show detailed L2TPv3 interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=l2tpv3 --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-pseudo-ethernet.xml b/op-mode-definitions/show-interfaces-pseudo-ethernet.xml new file mode 100644 index 000000000..195944745 --- /dev/null +++ b/op-mode-definitions/show-interfaces-pseudo-ethernet.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show pseudo-ethernet/MACvlan interface information + + interfaces pseudo-ethernet + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified pseudo-ethernet/MACvlan interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show pseudo-ethernet/MACvlan interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=pseudo-ethernet --action=show-brief + + + + Show detailed pseudo-ethernet/MACvlan interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=pseudo-ethernet --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-tunnel.xml b/op-mode-definitions/show-interfaces-tunnel.xml new file mode 100644 index 000000000..416de0299 --- /dev/null +++ b/op-mode-definitions/show-interfaces-tunnel.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show tunnel interface information + + interfaces tunnel + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified tunnel interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show tunnel interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=tunnel --action=show-brief + + + + Show detailed tunnel interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=tunnel --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-vti.xml b/op-mode-definitions/show-interfaces-vti.xml new file mode 100644 index 000000000..f51be2d19 --- /dev/null +++ b/op-mode-definitions/show-interfaces-vti.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show vti interface information + + interfaces vti + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified vti interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show vti interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=vti --action=show-brief + + + + Show detailed vti interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=vti --action=show + + + + + + + + diff --git a/op-mode-definitions/show-interfaces-vxlan.xml b/op-mode-definitions/show-interfaces-vxlan.xml new file mode 100644 index 000000000..4e3cb93cd --- /dev/null +++ b/op-mode-definitions/show-interfaces-vxlan.xml @@ -0,0 +1,42 @@ + + + + + + + + + Show VXLAN interface information + + interfaces vxlan + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show summary of the specified VXLAN interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief + + + + + + Show VXLAN interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=vxlan --action=show-brief + + + + Show detailed VXLAN interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=vxlan --action=show + + + + + + + + -- cgit v1.2.3