aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/odl_cluster/tasks/03_03_recover_external_network.yml
blob: bffaf79f1b43827e615e1fda2315b6e216c10e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##############################################################################
# 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"