Second attempt at preventing ipv6 route enumeration on EL4 machines
This commit is contained in:
parent
bee6b544f5
commit
4ce2a5f8df
1 changed files with 3 additions and 0 deletions
|
@ -1370,6 +1370,9 @@ class LinuxNetwork(Network):
|
|||
)
|
||||
interface = dict(v4 = {}, v6 = {})
|
||||
for v in 'v4', 'v6':
|
||||
if v == 'v6' and self.facts['os_family'] == 'RedHat' \
|
||||
and self.facts['distribution_version'].startswith('4.'):
|
||||
continue
|
||||
if v == 'v6' and not socket.has_ipv6:
|
||||
continue
|
||||
rc, out, err = module.run_command(command[v])
|
||||
|
|
Loading…
Reference in a new issue