diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-09 19:38:36 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-09 19:38:36 +0200 |
commit | 100614ab3a96b5325da08c76c8db2f4cae93396a (patch) | |
tree | 0701d62bce5cae4d401355bda73a9661acc16ef8 /interface-definitions/include/bgp/afi-common.xml.i | |
parent | 59b2b2055f553e5a227d644ca0fc779d004f7d67 (diff) | |
download | vyos-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.i | 16 |
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"> |