Support handling routers

This commit is contained in:
2018-09-24 15:10:12 -04:00
parent 40f36271cc
commit 744e9cab4d
3 changed files with 306 additions and 0 deletions

View File

@ -173,6 +173,16 @@ def verifyNode(zk_conn, node):
return True
except:
return False
#
# Verify router is valid in cluster
#
def verifyRouter(zk_conn, router):
try:
zk_conn.get('/routers/{}'.format(router))
return True
except:
return False
#
# Get the list of valid target hypervisors