summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-29 12:30:35 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-29 12:30:35 +0100
commitcacbc208d0802806de2c671e41607d605138aaa5 (patch)
treeb7e479ade5f090b69830e19c24b575ed7ea1fed3 /interface-definitions
parentb474b60a8c4240858d8abdcdbeb555b85452a517 (diff)
parentd6974be8d96cae21dde6bfa40fe568db3d3ef04f (diff)
downloadvyos-1x-cacbc208d0802806de2c671e41607d605138aaa5.tar.gz
vyos-1x-cacbc208d0802806de2c671e41607d605138aaa5.zip
Merge branch 'dhcp-relay' of github.com:c-po/vyos-1x into current
* 'dhcp-relay' of github.com:c-po/vyos-1x: dhcp-relay: T3095: migrate service to get_config_dict() smoketest: dhcp-relay: T3095: initial tests
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/dhcp-relay.xml.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/interface-definitions/dhcp-relay.xml.in b/interface-definitions/dhcp-relay.xml.in
index b83402aa1..8c95239d9 100644
--- a/interface-definitions/dhcp-relay.xml.in
+++ b/interface-definitions/dhcp-relay.xml.in
@@ -35,6 +35,7 @@
</constraint>
<constraintErrorMessage>hop-count must be a value between 1 and 255</constraintErrorMessage>
</properties>
+ <defaultValue>10</defaultValue>
</leafNode>
<leafNode name="max-size">
<properties>
@@ -72,9 +73,10 @@
<description>discard packet (default action if giaddr not set in packet)</description>
</valueHelp>
<constraint>
- <regex>(append|replace|forward|discard)</regex>
+ <regex>^(append|replace|forward|discard)$</regex>
</constraint>
</properties>
+ <defaultValue>forward</defaultValue>
</leafNode>
</children>
</node>