bundlewrap/bundles/wide-dhcp6c/files/ip-down

11 lines
258 B
Text
Raw Normal View History

#!/bin/bash
systemctl stop wide-dhcpv6-client
% for interface, subnet_id in sorted(targets.items()):
for IP in $(ip -6 addr show dev ${interface} | grep inet6 | awk '{print $2}' | grep -vF 'fe80::')
do
ip -6 addr del $IP dev ${interface}
done
% endfor