diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-18 12:47:01 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-18 12:58:15 +0200 |
commit | 1cc2ac26106f8efad6defaba9ba4d1296d75cf1f (patch) | |
tree | 093f0df871f965e98d4097ea974b74eee7f8f76e /interface-definitions/include/bgp/afi-rd.xml.i | |
parent | 231095f95df129ef9e051ec218a1c3fe9e99cd98 (diff) | |
download | vyos-1x-1cc2ac26106f8efad6defaba9ba4d1296d75cf1f.tar.gz vyos-1x-1cc2ac26106f8efad6defaba9ba4d1296d75cf1f.zip |
bgp: T3759: add l3vpn "rd" route-distinguisher commands
Add the following new commands:
* set protocols bgp address-family ipv4-unicast rd vpn export
* set protocols bgp address-family ipv6-unicast rd vpn export
Diffstat (limited to 'interface-definitions/include/bgp/afi-rd.xml.i')
-rw-r--r-- | interface-definitions/include/bgp/afi-rd.xml.i | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp/afi-rd.xml.i b/interface-definitions/include/bgp/afi-rd.xml.i new file mode 100644 index 000000000..c4d29268c --- /dev/null +++ b/interface-definitions/include/bgp/afi-rd.xml.i @@ -0,0 +1,28 @@ +<!-- include start from bgp/afi-rd.xml.i --> +<node name="rd"> + <properties> + <help>Specify route distinguisher</help> + </properties> + <children> + <node name="vpn"> + <properties> + <help>Between current address-family and VPN</help> + </properties> + <children> + <leafNode name="export"> + <properties> + <help>For routes leaked from current address-family to VPN</help> + <valueHelp> + <format>ASN:NN_OR_IP-ADDRESS:NN</format> + <description>Route Distinguisher, (x.x.x.x:yyy|xxxx:yyyy)</description> + </valueHelp> + <constraint> + <regex>^((25[0-5]|2[0-4][0-9]|[1][0-9][0-9]|[1-9][0-9]|[0-9]?)(\.(25[0-5]|2[0-4][0-9]|[1][0-9][0-9]|[1-9][0-9]|[0-9]?)){3}|[0-9]{1,10}):[0-9]{1,5}$</regex> + </constraint> + </properties> + </leafNode> + </children> + </node> + </children> +</node> +<!-- include end --> |