diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-06 00:37:43 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-06 00:41:01 +0200 |
commit | 11b2d00a47d1ab5110509aaa63efc86f9a95c112 (patch) | |
tree | ca05c2bd82ab367cb94ae459c78d3134abef482e /op-mode-definitions | |
parent | aade755ef58f074bb522d4fc4ad091c468064e4b (diff) | |
download | vyos-1x-11b2d00a47d1ab5110509aaa63efc86f9a95c112.tar.gz vyos-1x-11b2d00a47d1ab5110509aaa63efc86f9a95c112.zip |
op-mode: ethernet: T2546: add possibility to identify ethernet port
show interfaces ethernet eth0 identify
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/show-interfaces-ethernet.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/show-interfaces-ethernet.xml b/op-mode-definitions/show-interfaces-ethernet.xml index ec23a39c2..6068f9e57 100644 --- a/op-mode-definitions/show-interfaces-ethernet.xml +++ b/op-mode-definitions/show-interfaces-ethernet.xml @@ -19,6 +19,12 @@ </properties> <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief</command> </leafNode> + <leafNode name="identify"> + <properties> + <help>Visually identify specified ethernet interface</help> + </properties> + <command>echo "Blinking interface $4 for 30 seconds."; /sbin/ethtool --identify "$4" 30</command> + </leafNode> <node name="physical"> <properties> <help>Show physical device information for specified ethernet interface</help> |