summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--op-mode-definitions/show_vpp_interfaces.xml.in63
-rw-r--r--op-mode-definitions/vpp-bridge.xml.in36
-rw-r--r--op-mode-definitions/vpp_lacp.xml.in42
3 files changed, 63 insertions, 78 deletions
diff --git a/op-mode-definitions/show_vpp_interfaces.xml.in b/op-mode-definitions/show_vpp_interfaces.xml.in
index cb3775d4d..c26514813 100644
--- a/op-mode-definitions/show_vpp_interfaces.xml.in
+++ b/op-mode-definitions/show_vpp_interfaces.xml.in
@@ -34,6 +34,69 @@
</standalone>
<command>sudo ${vyos_op_scripts_dir}/show_vpp_interfaces.py --hardware --intf-name="$5"</command>
</tagNode>
+ <node name="bridge">
+ <properties>
+ <help>Show VPP bridge information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vpp.py show_bridge</command>
+ <children>
+ <virtualTagNode>
+ <properties>
+ <help>Show bridge information for specified interface</help>
+ <completionHelp>
+ <path>interfaces vpp bridge</path>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vpp.py show_bridge --ifname=$5</command>
+ <children>
+ <leafNode name="detail">
+ <properties>
+ <help>Show detailed bridge domain information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vpp.py show_bridge_details --ifname=$5</command>
+ </leafNode>
+ </children>
+ </virtualTagNode>
+ </children>
+ </node>
+ <node name="bonding">
+ <properties>
+ <help>Show VPP bonding information</help>
+ </properties>
+ <children>
+ <node name="lacp">
+ <properties>
+ <help>Show VPP LACP information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vpp.py show_lacp</command>
+ <children>
+ <virtualTagNode>
+ <properties>
+ <help>Show specific interface LACP information</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces --bondable</script>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vpp.py show_lacp --ifname=$6</command>
+ <children>
+ <leafNode name="detail">
+ <properties>
+ <help>Show interface LACP details</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vpp.py show_lacp_details --ifname=$6</command>
+ </leafNode>
+ </children>
+ </virtualTagNode>
+ <leafNode name="detail">
+ <properties>
+ <help>Show LACP detailed information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vpp.py show_lacp_details</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
</children>
<command>sudo ${vyos_op_scripts_dir}/show_vpp_interfaces.py --summary</command>
</node>
diff --git a/op-mode-definitions/vpp-bridge.xml.in b/op-mode-definitions/vpp-bridge.xml.in
deleted file mode 100644
index 70aaa0418..000000000
--- a/op-mode-definitions/vpp-bridge.xml.in
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0"?>
-<interfaceDefinition>
- <node name="show">
- <children>
- <node name="vpp">
- <children>
- <node name="bridge">
- <properties>
- <help>Show VPP bridge information</help>
- </properties>
- <command>${vyos_op_scripts_dir}/vpp.py show_bridge</command>
- <children>
- <virtualTagNode>
- <properties>
- <help>Show bridge information for specified interface</help>
- <completionHelp>
- <path>interfaces vpp bridge</path>
- </completionHelp>
- </properties>
- <command>${vyos_op_scripts_dir}/vpp.py show_bridge --ifname=$4</command>
- <children>
- <leafNode name="detail">
- <properties>
- <help>Show detailed bridge domain information</help>
- </properties>
- <command>${vyos_op_scripts_dir}/vpp.py show_bridge_details --ifname=$4</command>
- </leafNode>
- </children>
- </virtualTagNode>
- </children>
- </node>
- </children>
- </node>
- </children>
- </node>
-</interfaceDefinition>
diff --git a/op-mode-definitions/vpp_lacp.xml.in b/op-mode-definitions/vpp_lacp.xml.in
deleted file mode 100644
index 60d18647f..000000000
--- a/op-mode-definitions/vpp_lacp.xml.in
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0"?>
-<interfaceDefinition>
- <node name="show">
- <children>
- <node name="vpp">
- <children>
- <node name="lacp">
- <properties>
- <help>Show VPP LACP information</help>
- </properties>
- <command>${vyos_op_scripts_dir}/vpp.py show_lacp</command>
- <children>
- <virtualTagNode>
- <properties>
- <help>Show specific interface LACP information</help>
- <completionHelp>
- <script>${vyos_completion_dir}/list_interfaces --bondable</script>
- </completionHelp>
- </properties>
- <command>${vyos_op_scripts_dir}/vpp.py show_lacp --ifname=$4</command>
- <children>
- <leafNode name="detail">
- <properties>
- <help>Show interface LACP details</help>
- </properties>
- <command>${vyos_op_scripts_dir}/vpp.py show_lacp_details --ifname=$4</command>
- </leafNode>
- </children>
- </virtualTagNode>
- <leafNode name="detail">
- <properties>
- <help>Show LACP detailed information</help>
- </properties>
- <command>${vyos_op_scripts_dir}/vpp.py show_lacp_details</command>
- </leafNode>
- </children>
- </node>
- </children>
- </node>
- </children>
- </node>
-</interfaceDefinition> \ No newline at end of file