summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces-bonding.xml.in
diff options
context:
space:
mode:
authorSander Klein <github@roedie.nl>2023-01-07 22:32:37 +0100
committerSander Klein <github@roedie.nl>2023-01-07 22:32:37 +0100
commit41b3ecca0eb1676467fea343ff4490ab02d77cb3 (patch)
tree47a0d2d1924747ceb113c6ed502193a268d11f31 /op-mode-definitions/show-interfaces-bonding.xml.in
parent47216bbe29e0af8004040b5f1c9dc8450c0e8865 (diff)
downloadvyos-1x-41b3ecca0eb1676467fea343ff4490ab02d77cb3.tar.gz
vyos-1x-41b3ecca0eb1676467fea343ff4490ab02d77cb3.zip
T4918: op_mode interfaces: Fix show interfaces
`show interfaces ethernet eth0` and `show interface bonding eth0` produces the same output. While this is not a big problem it does make usage a bit odd sometimes. This commit adds the --intf_type option to all instances of interfaces.py to make output consistent.
Diffstat (limited to 'op-mode-definitions/show-interfaces-bonding.xml.in')
-rw-r--r--op-mode-definitions/show-interfaces-bonding.xml.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/op-mode-definitions/show-interfaces-bonding.xml.in b/op-mode-definitions/show-interfaces-bonding.xml.in
index 6908153dd..c41e7bd5f 100644
--- a/op-mode-definitions/show-interfaces-bonding.xml.in
+++ b/op-mode-definitions/show-interfaces-bonding.xml.in
@@ -11,13 +11,13 @@
<path>interfaces bonding</path>
</completionHelp>
</properties>
- <command>${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4"</command>
+ <command>${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4" --intf_type=bonding</command>
<children>
<leafNode name="brief">
<properties>
<help>Show summary of the specified bonding interface information</help>
</properties>
- <command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4"</command>
+ <command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4" --intf_type=bonding</command>
</leafNode>
<leafNode name="detail">
<properties>
@@ -38,13 +38,13 @@
<path>interfaces bonding ${COMP_WORDS[3]} vif</path>
</completionHelp>
</properties>
- <command>${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6"</command>
+ <command>${vyos_op_scripts_dir}/interfaces.py show --intf_name="$4.$6" --intf_type=bonding</command>
<children>
<leafNode name="brief">
<properties>
<help>Show summary of specified virtual network interface (vif) information</help>
</properties>
- <command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6"</command>
+ <command>${vyos_op_scripts_dir}/interfaces.py show_summary --intf_name="$4.$6" --intf_type=bonding</command>
</leafNode>
</children>
</tagNode>