mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Revert "Do not enumerate ipv6 routes in CentOS 4"
This reverts commit 5186c408f7.
This commit is contained in:
@@ -1370,10 +1370,6 @@ 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 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:
|
if v == 'v6' and not socket.has_ipv6:
|
||||||
continue
|
continue
|
||||||
rc, out, err = module.run_command(command[v])
|
rc, out, err = module.run_command(command[v])
|
||||||
|
|||||||
Reference in New Issue
Block a user