Adjust VNI column for provisioner to text

Allows the storing of the textual cluster labels (e.g. 'upstream') as
valid VNI values in the template.
This commit is contained in:
2021-06-02 15:45:22 -04:00
parent 7dea5d2fac
commit 34ef055954
3 changed files with 30 additions and 1 deletions

View File

@ -268,7 +268,7 @@ def create_template_network_element(name, vni):
networks = []
found_vni = False
for network in networks:
if int(network['vni']) == int(vni):
if network['vni'] == vni:
found_vni = True
if found_vni:
retmsg = {'message': 'The VNI "{}" in network template "{}" already exists.'.format(vni, name)}