mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fixup network.default_route with family set on SunOS #29233
This commit is contained in:
parent
c0e6ea98a6
commit
3888bb403f
1 changed files with 3 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue