summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-11 12:40:56 +0200
committerGitHub <noreply@github.com>2022-05-11 12:40:56 +0200
commitab75607030f0ae4f767cce614471fa3888b8f5a2 (patch)
treed80131d05ac9416a9931f81a5c9cfd91692c659d
parent432fd1b5e7b5a1e5b8503bf0dcd106369e323dc7 (diff)
parent636e9dc5b2b8e8911ff8d704b553b8d285ad6f1e (diff)
downloadvyos-1x-ab75607030f0ae4f767cce614471fa3888b8f5a2.tar.gz
vyos-1x-ab75607030f0ae4f767cce614471fa3888b8f5a2.zip
Merge pull request #1321 from sever-sever/T4405
T4405: Fix administrative distance of DHCP routes
-rw-r--r--src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper b/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper
index 74a7e83bf..5d879471d 100644
--- a/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper
+++ b/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper
@@ -26,7 +26,7 @@ function iptovtysh () {
local VTYSH_GATEWAY=""
local VTYSH_DEV=""
local VTYSH_TAG="210"
- local VTYSH_DISTANCE=""
+ local VTYSH_DISTANCE=$IF_METRIC
# convert default route to 0.0.0.0/0
if [ "$4" == "default" ] ; then
VTYSH_NETADDR="0.0.0.0/0"