blob: e1e78eea34a4e75d2a2dc894cc5897737870ff6f [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001---
2- hosts: switch_volt
3 sudo: yes
4 tasks:
5 - name: Create tunnel port on br-lan
6 openvswitch_port:
7 bridge=br-lan
8 port={{ item }}
9 state=present
10 with_items: "grenames.split(' ')"
11
12 - name: Set up GRE tunnel to vCPE
13 shell: ovs-vsctl set Interface {{ item.0 }} type=gre options:remote_ip={{ item.1 }}
14 with_together:
15 - "grenames.split(' ')"
16 - "bm_ips.split(' ')"
17
18- hosts: baremetal
19
20 user: root
21 sudo: no
22 tasks:
23 - name: Create br-lan
24 openvswitch_bridge:
25 bridge=br-lan
26 state=present
27
28 - name: Create tunnel port
29 openvswitch_port:
30 bridge=br-lan
31 port={{ grename }}
32 state=present
33
34 - name: Configure GRE tunnel to vOLT switch
35 shell: ovs-vsctl set Interface {{ grename }} type=gre options:remote_ip={{ volt_addr }}
36