-
Notifications
You must be signed in to change notification settings - Fork 125
/
example.yaml
executable file
·84 lines (77 loc) · 2.01 KB
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
- hosts: 127.0.0.1
connection: local
tasks:
- name: Configure memif on VPP
vpp_etcd:
agent_name: "agent-1"
value_type: "interface"
value:
name: "memif1"
type: "MEMIF"
enabled: true
memif:
master: false
id: 1
socket_filename: "/run/memif/agent-1.sock"
state: "present"
- name: Configure loopback instance 1 on VPP
vpp_etcd:
agent_name: "agent-1"
value_type: "interface"
value:
name: "loop1"
type: "SOFTWARE_LOOPBACK"
enabled: true
ip_addresses:
- "192.168.200.1/24"
state: "present"
- name: Configure route (192.168.0.0/16 via null) on VPP
vpp_etcd:
agent_name: "agent-1"
value_type: "route"
value:
type: "DROP"
dst_network: "192.168.0.0/16"
next_hop_addr: "0.0.0.0"
state: "present"
- name: Configure bridge domains on VPP
vpp_etcd:
value_type: "add-bridge-domain-interface"
merge_interfaces: true
value:
name: "bridge-domain10"
flood: true
unknown_unicast_flood: true
forward: true
learn: true
mac_age: 5
interfaces:
- name: "memif-a-0"
state: "present"
- name: Create sub interface 101
vpp_etcd:
value_type: "interface"
value:
name: "sub101"
type: "SUB_INTERFACE"
enabled: true
sub:
sub_id: "100"
parent_name: "Bond1"
tag_rw_option: "POP1"
state: "present"
- name: Configure bridge domain
vpp_etcd:
value_type: "bridge-domain"
value:
name: "bridge-domain-101"
flood: true
unknown_unicast_flood: true
forward: true
learn: true
mac_age: 5
interfaces:
- name: "memif1"
- name: "sub101"
state: "present"