ppp-on-up: just release ipv6 lease

This should get a new lease immediately.
This commit is contained in:
Christian Hesse 2019-01-04 20:30:17 +01:00
parent 63406dafbe
commit 0abb9a1848

View file

@ -9,12 +9,7 @@
:local IntName [ / interface get $Interface name ]; :local IntName [ / interface get $Interface name ];
:log info ("PPP interface " . $IntName . " is up."); :log info ("PPP interface " . $IntName . " is up.");
:local DhcpClient [ / ipv6 dhcp-client find where interface=$IntName ]; / ipv6 dhcp-client release [ find where interface=$IntName !disabled ];
:if ([ :len $DhcpClient ] > 0) do={
/ ipv6 dhcp-client disable $DhcpClient;
:delay 1s;
/ ipv6 dhcp-client enable $DhcpClient;
}
:local Scripts { :local Scripts {
"update-tunnelbroker" "update-tunnelbroker"