summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp/afi-common.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-common.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-common.xml.i')
-rw-r--r--interface-definitions/include/bgp/afi-common.xml.i16
1 files changed, 8 insertions, 8 deletions
diff --git a/interface-definitions/include/bgp/afi-common.xml.i b/interface-definitions/include/bgp/afi-common.xml.i
index 601ffe223..ac4a3fca0 100644
--- a/interface-definitions/include/bgp/afi-common.xml.i
+++ b/interface-definitions/include/bgp/afi-common.xml.i
@@ -38,14 +38,6 @@
</leafNode>
</children>
</node>
-<node name="default-originate">
- <properties>
- <help>Originate default route to this peer</help>
- </properties>
- <children>
- #include <include/route-map.xml.i>
- </children>
-</node>
<node name="distribute-list">
<properties>
<help>Access-list to filter route updates to/from this peer-group</help>
@@ -135,6 +127,14 @@
<completionHelp>
<path>policy route-map</path>
</completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Route map name</description>
+ </valueHelp>
+ <constraint>
+ <regex>^[-_a-zA-Z0-9.]+$</regex>
+ </constraint>
+ <constraintErrorMessage>Name of route-map can only contain alpha-numeric letters, hyphen and underscores</constraintErrorMessage>
</properties>
</leafNode>
<leafNode name="weight">