Address #4573 Check interface keys and return gracefully on solaris zones
This commit is contained in:
parent
31b5b66eb1
commit
ce29c158a9
1 changed files with 2 additions and 0 deletions
|
@ -1732,6 +1732,8 @@ class GenericBsdIfconfigNetwork(Network):
|
|||
def merge_default_interface(self, defaults, interfaces, ip_type):
|
||||
if not 'interface' in defaults.keys():
|
||||
return
|
||||
if not defaults['interface'] in interfaces:
|
||||
return
|
||||
ifinfo = interfaces[defaults['interface']]
|
||||
# copy all the interface values across except addresses
|
||||
for item in ifinfo.keys():
|
||||
|
|
Loading…
Reference in a new issue