summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface/dhcp-options.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-20 10:40:38 +0100
committerChristian Poessinger <christian@poessinger.com>2022-02-20 18:49:55 +0100
commitb693f929b63c0c847d9a3c6ee9160845ef501be1 (patch)
tree7791c4f4c546739669ffff268490393e7ac548d5 /interface-definitions/include/interface/dhcp-options.xml.i
parent3a1a7c40a13ee9f5561823a79876d88d3f5bf053 (diff)
downloadvyos-1x-b693f929b63c0c847d9a3c6ee9160845ef501be1.tar.gz
vyos-1x-b693f929b63c0c847d9a3c6ee9160845ef501be1.zip
static: T4203: obey interface dhcp default route distance
Commit 05aa22dc ("protocols: static: T3680: do not delete DHCP received routes") added a bug whenever a static route is modified - the DHCP interface will always end up with metric 210 - if there was a default route over a DHCP interface.
Diffstat (limited to 'interface-definitions/include/interface/dhcp-options.xml.i')
-rw-r--r--interface-definitions/include/interface/dhcp-options.xml.i3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface-definitions/include/interface/dhcp-options.xml.i b/interface-definitions/include/interface/dhcp-options.xml.i
index b65b0802a..f62b06640 100644
--- a/interface-definitions/include/interface/dhcp-options.xml.i
+++ b/interface-definitions/include/interface/dhcp-options.xml.i
@@ -30,12 +30,13 @@
<help>Distance for the default route from DHCP server</help>
<valueHelp>
<format>u32:1-255</format>
- <description>Distance for the default route from DHCP server (default 210)</description>
+ <description>Distance for the default route from DHCP server (default: 210)</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 1-255"/>
</constraint>
</properties>
+ <defaultValue>210</defaultValue>
</leafNode>
<leafNode name="reject">
<properties>