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