Skip to content

interfaces: T7268: Add op-mode command for show all interfaces on system #4447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: current
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions op-mode-definitions/show-interfaces.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Loading