[hopem,r=james-page] Fixup issue with ipv6 interface detection.

This commit is contained in:
James Page 2014-10-09 15:05:48 +01:00
commit 02cef4dbee

View File

@ -180,7 +180,7 @@ class ExternalPortContext(OSContextGenerator):
hwaddr = get_nic_hwaddr(nic)
hwaddr_to_nic[hwaddr] = nic
addresses = get_ipv4_addr(nic, fatal=False) + \
get_ipv6_addr(nic, fatal=False)
get_ipv6_addr(iface=nic, fatal=False)
hwaddr_to_ip[hwaddr] = addresses
mac_regex = re.compile(r'([0-9A-F]{2}[:-]){5}([0-9A-F]{2})', re.I)
for entry in config('ext-port').split():