summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp-remote-as.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-12 21:21:48 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-12 22:27:58 +0100
commit6dadc1900d29788035a3bce5bb42eaf499ca2a83 (patch)
treeb1eaf747e1b57a0610d670e4c4d809a3ec2a60e6 /interface-definitions/include/bgp-remote-as.xml.i
parent910919d856d790ff8905d513c280fdf12f8892ef (diff)
downloadvyos-1x-6dadc1900d29788035a3bce5bb42eaf499ca2a83.tar.gz
vyos-1x-6dadc1900d29788035a3bce5bb42eaf499ca2a83.zip
bgp: T2387: single-source xml templates to improve reusability
Diffstat (limited to 'interface-definitions/include/bgp-remote-as.xml.i')
-rw-r--r--interface-definitions/include/bgp-remote-as.xml.i27
1 files changed, 27 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp-remote-as.xml.i b/interface-definitions/include/bgp-remote-as.xml.i
new file mode 100644
index 000000000..de3f4d2ad
--- /dev/null
+++ b/interface-definitions/include/bgp-remote-as.xml.i
@@ -0,0 +1,27 @@
+<!-- included start from bgp-remote-as.xml.i -->
+<leafNode name="remote-as">
+ <properties>
+ <help>Neighbor BGP AS number [REQUIRED]</help>
+ <completionHelp>
+ <list>external internal</list>
+ </completionHelp>
+ <valueHelp>
+ <format>u32:1-4294967294</format>
+ <description>Neighbor AS number</description>
+ </valueHelp>
+ <valueHelp>
+ <format>external</format>
+ <description>Any AS different from the local AS</description>
+ </valueHelp>
+ <valueHelp>
+ <format>internal</format>
+ <description>Neighbor AS number</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-4294967294"/>
+ <regex>^(external|internal)$</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid AS number</constraintErrorMessage>
+ </properties>
+</leafNode>
+<!-- included end -->