FIX: Ligato tests
[csit.git] / resources / templates / kubernetes / configmaps / eth-1drcl2xcbase-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                       memif_parms:
58                         inter_pod_conn: vswitch
59
60               - metadata:
61                   name: vnf2
62                 spec:
63                   pod_type: vppcontainer
64                   interfaces:
65                     - name: port1
66                       if_type: memif
67                       memif_parms:
68                         inter_pod_conn: vswitch
69                     - name: port2
70                       if_type: memif
71                       memif_parms:
72                         inter_pod_conn: vswitch
73
74               - metadata:
75                   name: vnf3
76                 spec:
77                   pod_type: vppcontainer
78                   interfaces:
79                     - name: port1
80                       if_type: memif
81                       memif_parms:
82                         inter_pod_conn: vswitch
83                     - name: port2
84                       if_type: memif
85                       memif_parms:
86                         inter_pod_conn: vswitch
87
88               - metadata:
89                   name: vnf4
90                 spec:
91                   pod_type: vppcontainer
92                   interfaces:
93                     - name: port1
94                       if_type: memif
95                       memif_parms:
96                         inter_pod_conn: vswitch
97                     - name: port2
98                       if_type: memif
99
100             connections:
101
102               - conn_type: l2pp # l2x eth1 to vnf1 port 1
103                 pod_interfaces:
104                   - vnf1/port1
105                 node_interfaces:
106                   - vswitch/$$VSWITCH_IF1$$
107
108               - conn_type: l2pp
109                 pod_interfaces: # l2x the ports on vnf1
110                   - vnf1/port1
111                   - vnf1/port2
112
113               - conn_type: l2pp
114                 conn_method: vswitch
115                 pod_interfaces: # memif via vswitch between vnf1 to vnf2
116                   - vnf1/port2
117                   - vnf2/port1
118
119               - conn_type: l2pp
120                 pod_interfaces: # l2x the ports on vnf2
121                   - vnf2/port1
122                   - vnf2/port2
123
124               - conn_type: l2pp
125                 conn_method: vswitch
126                 pod_interfaces: # memif via vswitch between vnf2 to vnf3
127                   - vnf2/port2
128                   - vnf3/port1
129
130               - conn_type: l2pp
131                 pod_interfaces: # l2x the ports on vnf3
132                   - vnf3/port1
133                   - vnf3/port2
134
135               - conn_type: l2pp
136                 conn_method: vswitch
137                 pod_interfaces: # memif via vswitch between vnf3 to vnf4
138                   - vnf3/port2
139                   - vnf4/port1
140
141               - conn_type: l2pp
142                 pod_interfaces: # l2x the ports on vnf4
143                   - vnf4/port1
144                   - vnf4/port2
145
146               - conn_type: l2pp # l2x eth2 to vnf4 port 2
147                 pod_interfaces:
148                   - vnf4/port2
149                 node_interfaces:
150                   - vswitch/$$VSWITCH_IF2$$