1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #3496 from johanwiren/bsd-ipv6-facts

Fix for populating default_ipv6 on BSD systems
This commit is contained in:
Michael DeHaan 2013-07-11 05:55:53 -07:00
commit 3a84254f6d

View file

@ -1526,12 +1526,12 @@ class GenericBsdIfconfigNetwork(Network):
# Use the commands: # Use the commands:
# route -n get 8.8.8.8 -> Google public DNS # route -n get 8.8.8.8 -> Google public DNS
# route -n get 2404:6800:400a:800::1012 -> ipv6.google.com # route -n get -inet6 2404:6800:400a:800::1012 -> ipv6.google.com
# to find out the default outgoing interface, address, and gateway # to find out the default outgoing interface, address, and gateway
command = dict( command = dict(
v4 = [route_path, '-n', 'get', '8.8.8.8'], v4 = [route_path, '-n', 'get', '8.8.8.8'],
v6 = [route_path, '-n', 'get', '2404:6800:400a:800::1012'] v6 = [route_path, '-n', 'get', '-inet6', '2404:6800:400a:800::1012']
) )
interface = dict(v4 = {}, v6 = {}) interface = dict(v4 = {}, v6 = {})