FIX: Ligato tests
[csit.git] / resources / templates / kubernetes / configmaps / eth-1drcl2bdbasemaclrn-eth-2memif-2drcl2xc-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
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               - metadata:
54                   name: vnf2
55                 spec:
56                   pod_type: vppcontainer
57                   interfaces:
58                     - name: port1
59                       if_type: memif
60                     - name: port2
61                       if_type: memif
62
63             connections:
64
65               - conn_type: l2mp # bridge eth1 to vnf1 port 1
66                 pod_interfaces:
67                   - vnf1/port1
68                 node_interfaces:
69                   - vswitch/$$VSWITCH_IF1$$
70                 l2bd:
71                   name: eth1-vnf-port1
72                   bd_parms:
73                     flood: true
74                     unknown_unicast_flood: true
75                     forward: true
76                     learn: true
77
78               - conn_type: l2pp
79                 pod_interfaces: # l2x the ports on vnf1
80                   - vnf1/port1
81                   - vnf1/port2
82
83               - conn_type: l2pp
84                 conn_method: direct
85                 pod_interfaces: # direct memif between vnf1 to vnf2
86                   - vnf1/port2
87                   - vnf2/port1
88
89               - conn_type: l2pp
90                 pod_interfaces: # l2x the ports on vnf2
91                   - vnf2/port1
92                   - vnf2/port2
93
94               - conn_type: l2mp # bridge eth2 to vnf2 port 2
95                 pod_interfaces:
96                   - vnf2/port2
97                 node_interfaces:
98                   - vswitch/$$VSWITCH_IF2$$
99                 l2bd:
100                   name: eth2-vnf-port2
101                   bd_parms:
102                     flood: true
103                     unknown_unicast_flood: true
104                     forward: true
105                     learn: true