summaryrefslogtreecommitdiff
path: root/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper
diff options
context:
space:
mode:
authorGabriel Skupien <g.skupien@vyos.io>2020-04-26 12:23:58 +0200
committerGabriel Skupien <g.skupien@vyos.io>2020-04-26 12:23:58 +0200
commited4a493b734cac1fbf73df4a067a12d52d3fea57 (patch)
tree28a3056a95dd593f581ab633f78cb06d4ac4c4fd /src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper
parent7765d528ce304275350f87c748fa7988ffb4bc26 (diff)
downloadvyos-1x-ed4a493b734cac1fbf73df4a067a12d52d3fea57.tar.gz
vyos-1x-ed4a493b734cac1fbf73df4a067a12d52d3fea57.zip
dhclient: T1381: Improved RFC3442 routes processing
Several improvements in processing RFC3442 routes (support for route deletion, DHCP RENEW and link-local routes)
Diffstat (limited to 'src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper')
-rw-r--r--src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper8
1 files changed, 6 insertions, 2 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 59f92703c..f1167fcd2 100644
--- a/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper
+++ b/src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper
@@ -15,8 +15,11 @@ function frr_alive () {
# convert ip route command to vtysh
function iptovtysh () {
# prepare variables for vtysh command
- VTYSH_DISTANCE="210"
- VTYSH_TAG="210"
+ local VTYSH_DISTANCE="210"
+ local VTYSH_TAG="210"
+ local VTYSH_NETADDR=""
+ local VTYSH_GATEWAY=""
+ local VTYSH_DEV=""
# convert default route to 0.0.0.0/0
if [ "$4" == "default" ] ; then
VTYSH_NETADDR="0.0.0.0/0"
@@ -74,3 +77,4 @@ function ip () {
fi
fi
}
+