summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp/afi-default-originate.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-09 19:38:36 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-09 19:38:36 +0200
commit100614ab3a96b5325da08c76c8db2f4cae93396a (patch)
tree0701d62bce5cae4d401355bda73a9661acc16ef8 /interface-definitions/include/bgp/afi-default-originate.xml.i
parent59b2b2055f553e5a227d644ca0fc779d004f7d67 (diff)
downloadvyos-1x-100614ab3a96b5325da08c76c8db2f4cae93396a.tar.gz
vyos-1x-100614ab3a96b5325da08c76c8db2f4cae93396a.zip
bgp: xml: T2771: remove duplicated XML nodes
Instead of having a 95% copy from afi-common.xml.i in afi-common-vpn.xml.i, split out the part that is differend (default originate) and re-use the same building block.
Diffstat (limited to 'interface-definitions/include/bgp/afi-default-originate.xml.i')
-rw-r--r--interface-definitions/include/bgp/afi-default-originate.xml.i10
1 files changed, 10 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp/afi-default-originate.xml.i b/interface-definitions/include/bgp/afi-default-originate.xml.i
new file mode 100644
index 000000000..ba1ec5704
--- /dev/null
+++ b/interface-definitions/include/bgp/afi-default-originate.xml.i
@@ -0,0 +1,10 @@
+<!-- include start from bgp/afi-default-originate.xml.i -->
+<node name="default-originate">
+ <properties>
+ <help>Originate default route to this peer</help>
+ </properties>
+ <children>
+ #include <include/route-map.xml.i>
+ </children>
+</node>
+<!-- include end -->