summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp-local-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-local-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-local-as.xml.i')
-rw-r--r--interface-definitions/include/bgp-local-as.xml.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp-local-as.xml.i b/interface-definitions/include/bgp-local-as.xml.i
new file mode 100644
index 000000000..cf55ce476
--- /dev/null
+++ b/interface-definitions/include/bgp-local-as.xml.i
@@ -0,0 +1,22 @@
+<!-- included start from bgp-local-as.xml.i -->
+<tagNode name="local-as">
+ <properties>
+ <help>Local AS number [REQUIRED]</help>
+ <valueHelp>
+ <format>u32:1-4294967294</format>
+ <description>Local AS number</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-4294967294"/>
+ </constraint>
+ </properties>
+ <children>
+ <leafNode name="no-prepend">
+ <properties>
+ <help>Disable prepending local-as to updates from EBGP peers</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ </children>
+</tagNode>
+<!-- included end -->