Fix bug in vni lists

This commit is contained in:
Joshua Boniface 2018-10-28 18:13:28 -04:00
parent 939532c293
commit 3025772e6d
1 changed files with 2 additions and 2 deletions

View File

@ -43,11 +43,11 @@ import client_lib.common as common
#
def getClusterNetworkList(zk_conn):
# Get a list of VNIs by listing the children of /networks
vni_list = zkhandler.readdata(zk_conn, '/networks')
vni_list = zkhandler.listchildren(zk_conn, '/networks')
description_list = []
# For each VNI, get the corresponding description from the data
for vni in vni_list:
description_list.append(zkhandler.readdata(zk_conn, '/networks/{}'))
description_list.append(zkhandler.readdata(zk_conn, '/networks/{}'.format(vni)))
return vni_list, description_list
def searchClusterByVNI(zk_conn, vni):