diff --git a/postservice/31-one-netmng b/postservice/31-one-netmng index 4fd5ec6..abb2a40 100755 --- a/postservice/31-one-netmng +++ b/postservice/31-one-netmng @@ -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')