diff options
-rw-r--r-- | op-mode-definitions/show-interfaces.xml.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/show-interfaces.xml.in b/op-mode-definitions/show-interfaces.xml.in index 09466647d..126ce6311 100644 --- a/op-mode-definitions/show-interfaces.xml.in +++ b/op-mode-definitions/show-interfaces.xml.in @@ -26,6 +26,36 @@ </properties> <command>${vyos_op_scripts_dir}/interfaces.py show_summary</command> </leafNode> + <tagNode name="kernel"> + <properties> + <completionHelp> + <script>ip -j link show | jq -r '.[].ifname'</script> + </completionHelp> + </properties> + <command>sudo ip -s link show dev $4</command> + <children> + <leafNode name="json"> + <properties> + <help>Show system interface in JSON format</help> + </properties> + <command>ip -j -s -d link show dev $4</command> + </leafNode> + </children> + </tagNode> + <node name="kernel"> + <properties> + <help>Show all interfaces on this system</help> + </properties> + <command>sudo ip -s link show</command> + <children> + <leafNode name="json"> + <properties> + <help>Show all interfaces in JSON format</help> + </properties> + <command>ip -j -s -d link show</command> + </leafNode> + </children> + </node> </children> </node> </children> |