summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-05 23:10:25 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-05 23:11:31 +0200
commite1aab88d15f0edb6e95c61851fbdb2d72b664aae (patch)
treeeefa8a5fe501adc370d4bf73d51c478310c5875f /op-mode-definitions
parent4f2e0f0e3805eb8d0f49a88f096a43c8c64a311a (diff)
downloadvyos-1x-e1aab88d15f0edb6e95c61851fbdb2d72b664aae.tar.gz
vyos-1x-e1aab88d15f0edb6e95c61851fbdb2d72b664aae.zip
op-mode: ethernet: T2546: add vif subcommand
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-interfaces-ethernet.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/op-mode-definitions/show-interfaces-ethernet.xml b/op-mode-definitions/show-interfaces-ethernet.xml
index 63afe8248..675636929 100644
--- a/op-mode-definitions/show-interfaces-ethernet.xml
+++ b/op-mode-definitions/show-interfaces-ethernet.xml
@@ -12,6 +12,12 @@
</completionHelp>
</properties>
<children>
+ <leafNode name="brief">
+ <properties>
+ <help>Show summary of the specified ethernet interface information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief</command>
+ </leafNode>
<node name="physical">
<properties>
<help>Show physical device information for specified ethernet interface</help>
@@ -38,8 +44,38 @@
</properties>
<command>/sbin/ethtool -m "$4"</command>
</leafNode>
+ <tagNode name="vif">
+ <properties>
+ <help>Show specified virtual network interface (vif) information</help>
+ <completionHelp>
+ <path>interfaces ethernet ${COMP_WORDS[3]} vif</path>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6"</command>
+ <children>
+ <leafNode name="brief">
+ <properties>
+ <help>Show summary of specified virtual network interface (vif) information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4.$6" --action=show-brief</command>
+ </leafNode>
+ </children>
+ </tagNode>
</children>
</tagNode>
+ <node name="ethernet">
+ <properties>
+ <help>Show ethernet interface information</help>
+ </properties>
+ <children>
+ <leafNode name="detail">
+ <properties>
+ <help>Show detailed ethernet interface information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf-type=ethernet --action=show</command>
+ </leafNode>
+ </children>
+ </node>
</children>
</node>
</children>