diff options
author | Geoff Adams <gadams@avernus.com> | 2018-11-27 20:40:11 -0800 |
---|---|---|
committer | Geoff Adams <gadams@avernus.com> | 2018-11-27 20:40:11 -0800 |
commit | 6bd3ae4fe0b0ea70f26f0b85e39c9c6b01661b4b (patch) | |
tree | 99513a560edc75eea2235ee4283697a25152c7fd /scripts/vyatta-dhcpv6-client.pl | |
parent | 4cc8f2d4bb9c72f662d5d453e6ac954e64cb7a16 (diff) | |
download | vyatta-cfg-system-6bd3ae4fe0b0ea70f26f0b85e39c9c6b01661b4b.tar.gz vyatta-cfg-system-6bd3ae4fe0b0ea70f26f0b85e39c9c6b01661b4b.zip |
T1055: Wait for Duplicate Address Detection on the relevant interface
The DHCPv6 client can't start on an interface when DAD is ongoing.
There is a workaround in place to wait for DAD to complete, but it
only works on eth0!
Diffstat (limited to 'scripts/vyatta-dhcpv6-client.pl')
-rwxr-xr-x | scripts/vyatta-dhcpv6-client.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-dhcpv6-client.pl b/scripts/vyatta-dhcpv6-client.pl index c0b4cfeb..64c6840d 100755 --- a/scripts/vyatta-dhcpv6-client.pl +++ b/scripts/vyatta-dhcpv6-client.pl @@ -146,7 +146,7 @@ if (defined($start_flag) || defined ($renew_flag)) { # https://phabricator.vyos.net/T903 for (my $attempt_count = 0; $attempt_count <= 60; $attempt_count++) { # Check for any non-tentative addresses (exit code 0 if any exist, 1 otherwise) - if (system("test -n \"\$(ip -6 -o addr show dev eth0 scope link -tentative)\"") != 0) { + if (system("test -n \"\$(ip -6 -o addr show dev $ifname scope link -tentative)\"") != 0) { # No non-tentative address found, sleep and retry or exit if ($attempt_count == 0) { print "Duplicate address detection incomplete, waiting\n" |