Correct invalid comparison in template VNI add
This commit is contained in:
parent
7e2114b536
commit
3dbdd12d8f
|
@ -264,7 +264,7 @@ def create_template_network_element(name, vni):
|
||||||
networks = []
|
networks = []
|
||||||
found_vni = False
|
found_vni = False
|
||||||
for network in networks:
|
for network in networks:
|
||||||
if int(network['vni']) == vni:
|
if int(network['vni']) == int(vni):
|
||||||
found_vni = True
|
found_vni = True
|
||||||
if found_vni:
|
if found_vni:
|
||||||
retmsg = { 'message': 'The VNI "{}" in network template "{}" already exists.'.format(vni, name) }
|
retmsg = { 'message': 'The VNI "{}" in network template "{}" already exists.'.format(vni, name) }
|
||||||
|
|
Loading…
Reference in New Issue