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