diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-27 19:01:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 19:01:20 +0200 |
commit | 5403dbae479266411eaa754ca3f32af79b26a284 (patch) | |
tree | 4cea84977088c1fd8e12443a169c1ecd8d852fa6 /src/etc/dhcp/dhclient-enter-hooks.d/03-vyos-ipwrapper | |
parent | 69977520cd74cc3af4594039e26dc0d5b49c9b35 (diff) | |
parent | ed4a493b734cac1fbf73df4a067a12d52d3fea57 (diff) | |
download | vyos-1x-5403dbae479266411eaa754ca3f32af79b26a284.tar.gz vyos-1x-5403dbae479266411eaa754ca3f32af79b26a284.zip |
Merge pull request #377 from L6NqLW/T1381
dhclient: T1381: Improved RFC3442 routes processing
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-ipwrapper | 8 |
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 } + |