40963260e33fcb782d68b135ba547e88f6142369
[compass4nfv.git] /
1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
3 #
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 ##############################################################################
9 ---
10
11 - name: recover external network for L3
12   include: 03_03_00_recover_external_network_l3.yml
13   when: odl_l3_agent == "Enable"
14
15 - name: recover external network for L2
16   include: 03_03_01_recover_external_network_l2.yml
17   when: odl_l3_agent == "Disable"
18
19 - name: restart keepalived to recover external IP
20   shell: service keepalived restart
21   when: inventory_hostname in groups['odl']
22   ignore_errors: True