Follower don't have to manage ONE networks
This commit is contained in:
parent
ecb6441aef
commit
2008031e91
@ -303,6 +303,14 @@ def main():
|
||||
logger.debug(u"Configure OpenNebula networks")
|
||||
|
||||
client = CreoleClient()
|
||||
|
||||
mode_ha = client.get_creole('activer_one_ha')
|
||||
if mode_ha == "oui":
|
||||
indx = client.get_creole('one_ha_server_index')
|
||||
if indx != 0:
|
||||
# Mode HA is on and we are not in the Leader
|
||||
exit(0)
|
||||
|
||||
one_client = OneClient('oneadmin')
|
||||
networks = []
|
||||
cluster = client.get_creole('one_cluster_name')
|
||||
|
Loading…
Reference in New Issue
Block a user