FIX: Ligato tests
[csit.git] / resources / templates / kubernetes / configmaps / eth-1drcl2bdbasemaclrn-eth-4memif-2drcl2xc-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
27     network_nodes:
28       - metadata:
29             name: vswitch
30         spec:
31             node_type: host
32             interfaces:
33             - name: $$VSWITCH_IF1$$
34               if_type: ethernet
35             - name: $$VSWITCH_IF2$$
36               if_type: ethernet
37
38     network_services:
39       - metadata:
40             name: my-network-service
41         spec:
42             network_pods:
43
44               - metadata:
45                   name: vnf1
46                 spec:
47                   pod_type: vppcontainer
48                   interfaces:
49                     - name: port1
50                       if_type: memif
51                     - name: port2
52                       if_type: memif
53
54               - metadata:
55                   name: vnf2
56                 spec:
57                   pod_type: vppcontainer
58                   interfaces:
59                     - name: port1
60                       if_type: memif
61                     - name: port2
62                       if_type: memif
63
64             connections:
65
66               - conn_type: l2mp # bridge eth1 to vnf1 port 1
67                 pod_interfaces:
68                   - vnf1/port1
69                 node_interfaces:
70                   - vswitch/$$VSWITCH_IF1$$
71                 l2bd:
72                   name: eth1-vnf-port1
73                   bd_parms:
74                     flood: true
75                     unknown_unicast_flood: true
76                     forward: true
77                     learn: true
78
79               - conn_type: l2pp
80                 pod_interfaces: # l2x the ports on vnf1
81                   - vnf1/port1
82                   - vnf1/port2
83
84               - conn_type: l2pp
85                 conn_method: vswitch
86                 pod_interfaces: # memif via vswitch between vnf1 to vnf2
87                   - vnf1/port2
88                   - vnf2/port1
89
90               - conn_type: l2pp
91                 pod_interfaces: # l2x the ports on vnf2
92                   - vnf2/port1
93                   - vnf2/port2
94
95               - conn_type: l2mp # bridge eth2 to vnf2 port 2
96                 pod_interfaces:
97                   - vnf2/port2
98                 node_interfaces:
99                   - vswitch/$$VSWITCH_IF2$$
100                 l2bd:
101                   name: eth2-vnf-port2
102                   bd_parms:
103                     flood: true
104                     unknown_unicast_flood: true
105                     forward: true
106                     learn: true