Commit 5186c408 by James Tanner

Do not enumerate ipv6 routes in CentOS 4

parent bd20d3c9
......@@ -1370,6 +1370,10 @@ class LinuxNetwork(Network):
)
interface = dict(v4 = {}, v6 = {})
for v in 'v4', 'v6':
if v == 'v6' and self.facts['lsb']['id'] == 'CentOS' \
and self.facts['lsb']['major_release'] == '4':
# "ip -6 route get" causes kernel panics in Centos 4
continue
if v == 'v6' and not socket.has_ipv6:
continue
rc, out, err = module.run_command(command[v])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment