diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-12 21:21:48 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-12 22:27:58 +0100 |
commit | 6dadc1900d29788035a3bce5bb42eaf499ca2a83 (patch) | |
tree | b1eaf747e1b57a0610d670e4c4d809a3ec2a60e6 /interface-definitions/include/bgp-update-source.xml.i | |
parent | 910919d856d790ff8905d513c280fdf12f8892ef (diff) | |
download | vyos-1x-6dadc1900d29788035a3bce5bb42eaf499ca2a83.tar.gz vyos-1x-6dadc1900d29788035a3bce5bb42eaf499ca2a83.zip |
bgp: T2387: single-source xml templates to improve reusability
Diffstat (limited to 'interface-definitions/include/bgp-update-source.xml.i')
-rw-r--r-- | interface-definitions/include/bgp-update-source.xml.i | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp-update-source.xml.i b/interface-definitions/include/bgp-update-source.xml.i new file mode 100644 index 000000000..c1db2e2c1 --- /dev/null +++ b/interface-definitions/include/bgp-update-source.xml.i @@ -0,0 +1,28 @@ +<!-- included start from bgp-update-source.xml.i --> +<leafNode name="update-source"> + <!-- Need to check format interfaces --> + <properties> + <help>Source IP of routing updates</help> + <completionHelp> + <script>${vyos_completion_dir}/list_local_ips.sh --both</script> + </completionHelp> + <valueHelp> + <format>ipv4</format> + <description>IPv4 address of route source</description> + </valueHelp> + <valueHelp> + <format>ipv6</format> + <description>IPv6 address of route source</description> + </valueHelp> + <valueHelp> + <format>txt</format> + <description>Interface as route source</description> + </valueHelp> + <constraint> + <validator name="ipv4-address"/> + <validator name="ipv6-address"/> + <regex>^(br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo$</regex> + </constraint> + </properties> +</leafNode> +<!-- included end --> |