summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorBrandon Stepler <brandon@stepler.net>2021-02-15 10:30:00 -0500
committerChristian Poessinger <christian@poessinger.com>2021-03-19 19:41:09 +0100
commitff6afe62e801e570f6478decf2b4a813a5c0ee94 (patch)
tree2ba8221481e0460ea710f3bfe86c83196d2adeee /data/templates
parent74f526c9c1fe782c604d2b88c1753d787dc696b4 (diff)
downloadvyos-1x-ff6afe62e801e570f6478decf2b4a813a5c0ee94.tar.gz
vyos-1x-ff6afe62e801e570f6478decf2b4a813a5c0ee94.zip
dhcp: T3300: add DHCP default route distance
(cherry picked from commit dd2eb5e5686655c996ae95285b8ad7eb73d63d0b)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/dhcp-client/daemon-options.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/dhcp-client/daemon-options.tmpl b/data/templates/dhcp-client/daemon-options.tmpl
index 290aefa49..40629dca1 100644
--- a/data/templates/dhcp-client/daemon-options.tmpl
+++ b/data/templates/dhcp-client/daemon-options.tmpl
@@ -1,4 +1,4 @@
### Autogenerated by interface.py ###
-DHCLIENT_OPTS="-nw -cf /var/lib/dhcp/dhclient_{{ifname}}.conf -pf /var/lib/dhcp/dhclient_{{ifname}}.pid -lf /var/lib/dhcp/dhclient_{{ifname}}.leases {{ifname}}"
+DHCLIENT_OPTS="-nw -cf /var/lib/dhcp/dhclient_{{ifname}}.conf -pf /var/lib/dhcp/dhclient_{{ifname}}.pid -lf /var/lib/dhcp/dhclient_{{ifname}}.leases{{" -e IF_METRIC=" ~ dhcp_options.default_route_distance if dhcp_options.default_route_distance is defined and dhcp_options.default_route_distance is not none}} {{ifname}}"