Fixing typos.
This commit is contained in:
parent
8a40c6e0a3
commit
2d25907cba
@ -1,11 +1,11 @@
|
||||
#- address: 10.1.1.1/24
|
||||
# device: server01
|
||||
# interface: Loopback0
|
||||
# interface: to-server02
|
||||
# status: Active
|
||||
# vrf: vrf1
|
||||
#- address: 10.1.1.2/24
|
||||
# device: server02
|
||||
# interface: Vlan5
|
||||
# interface: to-server01
|
||||
# status: Active
|
||||
#- address: 10.1.1.10/24
|
||||
# description: reserved IP
|
||||
|
@ -12,7 +12,6 @@
|
||||
# vlan: vlan2
|
||||
# is_pool: true
|
||||
# vrf: vrf2
|
||||
# tenant: tenant2
|
||||
#- description: ipv6 prefix1
|
||||
# prefix: fd00:ccdd:a000:1::/64
|
||||
# site: AMS 2
|
||||
|
@ -3,10 +3,10 @@
|
||||
# mac_address: 00:77:77:77:77:77
|
||||
# mtu: 1500
|
||||
# name: Network Interface 1
|
||||
# virtual_machine: virtual_machine1
|
||||
# virtual_machine: virtual machine 1
|
||||
#- description: Network Interface 2
|
||||
# enabled: true
|
||||
# mac_address: 00:55:55:55:55:55
|
||||
# mtu: 1500
|
||||
# name: Network Interface 2
|
||||
# virtual_machine: virtual_machine1
|
||||
# virtual_machine: virtual machine 1
|
||||
|
@ -1,6 +1,6 @@
|
||||
#- name: VLAN group 1
|
||||
# site: AMS 1
|
||||
# slug: vlan-group-2
|
||||
# slug: vlan-group-1
|
||||
#- name: VLAN group 2
|
||||
# site: AMS 1
|
||||
# slug: vlan-group-2
|
||||
|
@ -6,4 +6,3 @@
|
||||
# name: vrf2
|
||||
# rd: "6500:6500"
|
||||
# tenant: tenant2
|
||||
# tenant_group: Tenant Group 2
|
||||
|
@ -28,11 +28,11 @@ with file.open('r') as stream:
|
||||
|
||||
params[assoc] = model.objects.get(**query)
|
||||
|
||||
if 'form_factor' in params:
|
||||
if 'type' in params:
|
||||
for outer_list in IFACE_TYPE_CHOICES:
|
||||
for ffactor_choices in outer_list[1]:
|
||||
if params['form_factor'] in ffactor_choices:
|
||||
params['form_factor'] = ffactor_choices[0]
|
||||
for type_choices in outer_list[1]:
|
||||
if params['type'] in type_choices:
|
||||
params['type'] = type_choices[0]
|
||||
break
|
||||
else:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user