Check for ipv6

reviewable/pr18780/r1
Michael DeHaan 12 years ago
parent 4223442992
commit 08a3079166

@ -461,6 +461,8 @@ class LinuxNetwork(Network):
) )
interface = dict(v4 = {}, v6 = {}) interface = dict(v4 = {}, v6 = {})
for v in 'v4', 'v6': for v in 'v4', 'v6':
if v == 'v6' and not socket.has_ipv6:
continue
output = subprocess.Popen(command[v], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] output = subprocess.Popen(command[v], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]
if not output: if not output:
# v6 routing may result in # v6 routing may result in

Loading…
Cancel
Save