Commit 10e91947 by Johan Wirén

Fix for populating default_ipv6 on BSD systems

parent 714cb02f
...@@ -1525,13 +1525,13 @@ class GenericBsdIfconfigNetwork(Network): ...@@ -1525,13 +1525,13 @@ class GenericBsdIfconfigNetwork(Network):
def get_default_interfaces(self, route_path): def get_default_interfaces(self, route_path):
# 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 = {})
......
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