FIX: Ligato tests
[csit.git] / resources / templates / kubernetes / configmaps / eth-1drcl2bdbasemaclrn-eth-8memif-4drcl2xc-1chain.yaml
1 ---
2 apiVersion: v1
3 kind: ConfigMap
4 metadata:
5   name: sfc-controller-cfg
6   namespace: csit
7 data:
8   etcd.conf: |
9     insecure-transport: true
10     dial-timeout: 1000000000
11     endpoints:
12       - "172.17.0.1:22379"
13
14   sfc.conf: |
15     sfc_controller_config_version: 2
16     description: $$TEST_NAME$$
17
18     system_parameters:
19       mtu: 9000
20
21     network_pod_to_node_map:
22       - pod: vnf1
23         node: vswitch
24       - pod: vnf2
25         node: vswitch
26       - pod: vnf3
27         node: vswitch
28       - pod: vnf4
29         node: vswitch
30
31     network_nodes:
32       - metadata:
33             name: vswitch
34         spec:
35             node_type: host
36             interfaces:
37             - name: $$VSWITCH_IF1$$
38               if_type: ethernet
39             - name: $$VSWITCH_IF2$$
40               if_type: ethernet
41
42     network_services:
43       - metadata:
44             name: my-network-service
45         spec:
46             network_pods:
47
48               - metadata:
49                   name: vnf1
50                 spec:
51                   pod_type: vppcontainer
52                   interfaces:
53                     - name: port1
54                       if_type: memif
55                     - name: port2
56                       if_type: memif
57
58               - metadata:
59                   name: vnf2
60                 spec:
61                   pod_type: vppcontainer
62                   interfaces:
63                     - name: port1
64                       if_type: memif
65                     - name: port2
66                       if_type: memif
67
68               - metadata:
69                   name: vnf3
70                 spec:
71                   pod_type: vppcontainer
72                   interfaces:
73                     - name: port1
74                       if_type: memif
75                     - name: port2
76                       if_type: memif
77
78               - metadata:
79                   name: vnf4
80                 spec:
81                   pod_type: vppcontainer
82                   interfaces:
83                     - name: port1
84                       if_type: memif
85                     - name: port2
86                       if_type: memif
87
88             connections:
89
90               - conn_type: l2mp # bridge eth1 to vnf1 port 1
91                 pod_interfaces:
92                   - vnf1/port1
93                 node_interfaces:
94                   - vswitch/$$VSWITCH_IF1$$
95                 l2bd:
96                   name: eth1-vnf-port1
97                   bd_parms:
98                     flood: true
99                     unknown_unicast_flood: true
100                     forward: true
101                     learn: true
102
103               - conn_type: l2pp
104                 pod_interfaces: # l2x the ports on vnf1
105                   - vnf1/port1
106                   - vnf1/port2
107
108               - conn_type: l2pp
109                 conn_method: vswitch
110                 pod_interfaces: # memif via vswitch between vnf1 to vnf2
111                   - vnf1/port2
112                   - vnf2/port1
113
114               - conn_type: l2pp
115                 pod_interfaces: # l2x the ports on vnf2
116                   - vnf2/port1
117                   - vnf2/port2
118
119               - conn_type: l2pp
120                 conn_method: vswitch
121                 pod_interfaces: # memif via vswitch between vnf2 to vnf3
122                   - vnf2/port2
123                   - vnf3/port1
124
125               - conn_type: l2pp
126                 pod_interfaces: # l2x the ports on vnf3
127                   - vnf3/port1
128                   - vnf3/port2
129
130               - conn_type: l2pp
131                 conn_method: vswitch
132                 pod_interfaces: # memif via vswitch between vnf3 to vnf4
133                   - vnf3/port2
134                   - vnf4/port1
135
136               - conn_type: l2pp
137                 pod_interfaces: # l2x the ports on vnf4
138                   - vnf4/port1
139                   - vnf4/port2
140
141               - conn_type: l2mp # bridge eth2 to vnf4 port 2
142                 pod_interfaces:
143                   - vnf4/port2
144                 node_interfaces:
145                   - vswitch/$$VSWITCH_IF2$$
146                 l2bd:
147                   name: eth2-vnf-port2
148                   bd_parms:
149                     flood: true
150                     unknown_unicast_flood: true
151                     forward: true
152                     learn: true