############################################################################## # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## --- - name: recover external network for L3 include: 03_03_00_recover_external_network_l3.yml when: odl_l3_agent == "Enable" - name: recover external network for L2 include: 03_03_01_recover_external_network_l2.yml when: odl_l3_agent == "Disable" - name: restart keepalived to recover external IP shell: service keepalived restart when: inventory_hostname in groups['odl'] ignore_errors: "True"