summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorCheeze_It <none@none.com>2023-04-09 17:38:36 -0600
committerCheeze_It <none@none.com>2023-04-11 12:01:57 -0600
commit9347bfa209626167f7f04856a81fc4ccab1aaccd (patch)
treef084acc524237f3d1106d9478d6b91cbde954e6a /op-mode-definitions
parent472f13e28842ea2e08247647368f841fd8d50e40 (diff)
downloadvyos-1x-9347bfa209626167f7f04856a81fc4ccab1aaccd.tar.gz
vyos-1x-9347bfa209626167f7f04856a81fc4ccab1aaccd.zip
T5081: ISIS and OSPF syncronization with IGP-LDP sync
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/include/isis-common.xml.i22
-rw-r--r--op-mode-definitions/include/ldp-sync.xml.i19
-rw-r--r--op-mode-definitions/include/ospf-common.xml.i20
3 files changed, 24 insertions, 37 deletions
diff --git a/op-mode-definitions/include/isis-common.xml.i b/op-mode-definitions/include/isis-common.xml.i
index 53e85a7ef..b5b4f9b5d 100644
--- a/op-mode-definitions/include/isis-common.xml.i
+++ b/op-mode-definitions/include/isis-common.xml.i
@@ -56,31 +56,15 @@
</tagNode>
<node name="mpls">
<properties>
- <help>Show IS-IS MPLS specific information</help>
+ <help>Show MPLS information</help>
</properties>
<children>
- <node name="ldp-sync">
- <properties>
- <help>Show IS-IS LDP-IGP synchronization information</help>
- </properties>
- <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
- <children>
- <tagNode name="interface">
- <properties>
- <help>Show specific IS-IS LDP-IGP synchronization for an interface</help>
- <completionHelp>
- <script>${vyos_completion_dir}/list_interfaces</script>
- </completionHelp>
- </properties>
- <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
- </tagNode>
- </children>
- </node>
+ #include <include/ldp-sync.xml.i>
</children>
</node>
<node name="mpls-te">
<properties>
- <help>Show IS-IS MPLS traffic engineering information</help>
+ <help>Show MPLS traffic engineering information</help>
</properties>
<children>
<leafNode name="router">
diff --git a/op-mode-definitions/include/ldp-sync.xml.i b/op-mode-definitions/include/ldp-sync.xml.i
new file mode 100644
index 000000000..b3be8f503
--- /dev/null
+++ b/op-mode-definitions/include/ldp-sync.xml.i
@@ -0,0 +1,19 @@
+<!-- included start from ldp-sync.xml.i -->
+<node name="ldp-sync">
+ <properties>
+ <help>Show LDP-IGP synchronization information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ <tagNode name="interface">
+ <properties>
+ <help>Show specific LDP-IGP synchronization for an interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces</script>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </tagNode>
+ </children>
+</node>
+<!-- included end --> \ No newline at end of file
diff --git a/op-mode-definitions/include/ospf-common.xml.i b/op-mode-definitions/include/ospf-common.xml.i
index 7d9e541cf..d1a62b690 100644
--- a/op-mode-definitions/include/ospf-common.xml.i
+++ b/op-mode-definitions/include/ospf-common.xml.i
@@ -519,26 +519,10 @@
</tagNode>
<node name="mpls">
<properties>
- <help>Show OSPF MPLS specific information</help>
+ <help>Show MPLS information</help>
</properties>
<children>
- <node name="ldp-sync">
- <properties>
- <help>Show OSPF LDP-IGP synchronization information</help>
- </properties>
- <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
- <children>
- <tagNode name="interface">
- <properties>
- <help>Show specific OSPF LDP-IGP synchronization for an interface</help>
- <completionHelp>
- <script>${vyos_completion_dir}/list_interfaces</script>
- </completionHelp>
- </properties>
- <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
- </tagNode>
- </children>
- </node>
+ #include <include/ldp-sync.xml.i>
</children>
</node>
<node name="neighbor">