Test error handling for itf creation.
This commit is contained in:
parent
b71db1af19
commit
74af9e31b6
1 changed files with 29 additions and 29 deletions
|
|
@ -291,9 +291,9 @@ class Network(object):
|
||||||
name=nic['name'], mac=nic['mac'], device=self.device.name
|
name=nic['name'], mac=nic['mac'], device=self.device.name
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
nic['vlan'] = None
|
|
||||||
|
|
||||||
|
|
||||||
|
if interface:
|
||||||
if nic['vlan']:
|
if nic['vlan']:
|
||||||
nb_vlan = self.get_or_create_vlan(nic['vlan'])
|
nb_vlan = self.get_or_create_vlan(nic['vlan'])
|
||||||
interface.mode = self.dcim_choices['interface:mode']['Tagged']
|
interface.mode = self.dcim_choices['interface:mode']['Tagged']
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue