From ed4a493b734cac1fbf73df4a067a12d52d3fea57 Mon Sep 17 00:00:00 2001 From: Gabriel Skupien Date: Sun, 26 Apr 2020 12:23:58 +0200 Subject: dhclient: T1381: Improved RFC3442 routes processing Several improvements in processing RFC3442 routes (support for route deletion, DHCP RENEW and link-local routes) --- src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/etc/dhcp/dhclient-enter-hooks.d') 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 } + -- cgit v1.2.3