summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface/default-route-distance.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-21 21:30:43 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-21 21:30:43 +0200
commit6ae413b2ca10413b393a1343cbfb23126fa99a50 (patch)
tree1a91ce436fe9462b588342764ee7bef5652452d8 /interface-definitions/include/interface/default-route-distance.xml.i
parent9fae51a905436dd28853556f78dbae89ea536057 (diff)
downloadvyos-1x-6ae413b2ca10413b393a1343cbfb23126fa99a50.tar.gz
vyos-1x-6ae413b2ca10413b393a1343cbfb23126fa99a50.zip
xml: T4385: provide building blocks for default route configuration
Diffstat (limited to 'interface-definitions/include/interface/default-route-distance.xml.i')
-rw-r--r--interface-definitions/include/interface/default-route-distance.xml.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/include/interface/default-route-distance.xml.i b/interface-definitions/include/interface/default-route-distance.xml.i
new file mode 100644
index 000000000..6eda52c91
--- /dev/null
+++ b/interface-definitions/include/interface/default-route-distance.xml.i
@@ -0,0 +1,15 @@
+<!-- include start from interface/default-route-distance.xml.i -->
+<leafNode name="default-route-distance">
+ <properties>
+ <help>Distance for installed default route</help>
+ <valueHelp>
+ <format>u32:1-255</format>
+ <description>Distance for the default route from DHCP server</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-255"/>
+ </constraint>
+ </properties>
+ <defaultValue>210</defaultValue>
+</leafNode>
+<!-- include end -->