summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-28 10:19:04 +0100
committerGitHub <noreply@github.com>2021-11-28 10:19:04 +0100
commite966d3376a0e9d7bd8ef03a2a08bf46eb662a2b1 (patch)
tree4547722e58d9d6136ed582b7a5a36361c7bb73a5
parentb96636bded2c839ad6c3103887473a0deeda6a5c (diff)
parentc7f89a15707dec6cee75d2697bb76e9ab23345a8 (diff)
downloadvyatta-cfg-system-crux.tar.gz
vyatta-cfg-system-crux.zip
Merge pull request #148 from sever-sever/T33941.2.9-S1crux
ipv6: T3394: Fix for del ipv6 address normalize
-rwxr-xr-xscripts/vyatta-address5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/vyatta-address b/scripts/vyatta-address
index ed9a298e..c3777579 100755
--- a/scripts/vyatta-address
+++ b/scripts/vyatta-address
@@ -35,7 +35,10 @@ case $1 in
ip_address=$(ip a s dev $2 | grep "inet $ip" | awk '{print $2}')
elif [[ "$3" = "dhcpv6" ]]; then
lease_file=/var/lib/dhcp/dhclient_v6_"$(echo $2 | sed -e 's/\./_/')".leases;
- ip_address=$(sed -n 's/^\s\s\s\siaaddr\s\(.*\)\s{/\1/p' $lease_file | sed -n '$p');
+ #ip_address=$(sed -n 's/^\s\s\s\siaaddr\s\(.*\)\s{/\1/p' $lease_file | sed -n '$p');
+ # T1053 T3394 we need IP/prefix for normalize-ip to function
+ ipv6=$(sed -n 's/^\s\s\s\siaaddr\s\(.*\)\s{/\1/p' $lease_file | sed -n '$p');
+ ip_address=$(ip -6 a s dev $2 | grep "inet6 $ipv6" | awk '{print $2}')
else
ip_address=$3;
fi