FIX: Ligato tests
[csit.git] / resources / templates / kubernetes / configmaps / eth-1drcl2xcbase-eth-2memif-4drcl2xc-1horiz.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: l2pp # l2x eth1 to vnf1 port 1
91                 pod_interfaces:
92                   - vnf1/port1
93                 node_interfaces:
94                   - vswitch/$$VSWITCH_IF1$$
95
96               - conn_type: l2pp
97                 pod_interfaces: # l2x the ports on vnf1
98                   - vnf1/port1
99                   - vnf1/port2
100
101               - conn_type: l2pp
102                 conn_method: direct
103                 pod_interfaces: # direct memif between vnf1 to vnf2
104                   - vnf1/port2
105                   - vnf2/port1
106
107               - conn_type: l2pp
108                 pod_interfaces: # l2x the ports on vnf2
109                   - vnf2/port1
110                   - vnf2/port2
111
112               - conn_type: l2pp
113                 conn_method: direct
114                 pod_interfaces: # direct memif between vnf2 to vnf3
115                   - vnf2/port2
116                   - vnf3/port1
117
118               - conn_type: l2pp
119                 pod_interfaces: # l2x the ports on vnf3
120                   - vnf3/port1
121                   - vnf3/port2
122
123               - conn_type: l2pp
124                 conn_method: direct
125                 pod_interfaces: # direct memif between vnf3 to vnf4
126                   - vnf3/port2
127                   - vnf4/port1
128
129               - conn_type: l2pp
130                 pod_interfaces: # l2x the ports on vnf4
131                   - vnf4/port1
132                   - vnf4/port2
133
134               - conn_type: l2pp # l2x eth2 to vnf4 port 2
135                 pod_interfaces:
136                   - vnf4/port2
137                 node_interfaces:
138                   - vswitch/$$VSWITCH_IF2$$