fixup network.default_route with family set on SunOS #29233

This commit is contained in:
Jorge Schrauwen 2015-11-26 22:07:41 +00:00 committed by rallytime
parent c0e6ea98a6
commit 3888bb403f

View file

@ -1307,7 +1307,10 @@ def default_route(family=None):
ret = []
for route in _routes:
if family:
log.info(route)
if route['destination'] in default_route[family]:
if __grains__['kernel'] == 'SunOS' and route['addr_family'] != family:
continue
ret.append(route)
else:
if route['destination'] in default_route['inet'] or \