e03feddc8179bac69121cd32ea7e6f795339e5a4
[csit.git] / resources / templates / kubernetes / configmaps / ch-eth-1drcl2bdbasemaclrn-eth-8memif-4drcl2xc.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: 1
16     description: $$TEST_NAME$$
17     host_entities:
18       - name: vswitch
19     sfc_entities:
20       - name: vswitch-vnf1
21         description: vswitch to VNF1 - memif
22         type: 4
23         elements:
24           - container: vswitch
25             port_label: $$VSWITCH_IF1$$
26             etcd_vpp_switch_key: vswitch
27             l2fib_macs:
28               - "$$TG_IF1_MAC1$$"
29             type: 5
30           - container: vnf1
31             port_label: port1
32             etcd_vpp_switch_key: vswitch
33             l2fib_macs:
34               - "$$TG_IF2_MAC1$$"
35             type: 2
36       - name: vswitch-vnf4
37         description: VNF4 to vswitch - memif
38         type: 4
39         elements:
40           - container: vswitch
41             port_label: $$VSWITCH_IF2$$
42             etcd_vpp_switch_key: vswitch
43             l2fib_macs:
44               - "$$TG_IF2_MAC1$$"
45             type: 5
46           - container: vnf4
47             port_label: port2
48             etcd_vpp_switch_key: vswitch
49             l2fib_macs:
50               - "$$TG_IF1_MAC1$$"
51             type: 2
52       - name: vnf1-vnf2
53         description: vnf1 to vnf2 via vswitch - memifs
54         type: 5
55         elements:
56           - container: vnf1
57             port_label: port2
58             etcd_vpp_switch_key: vswitch
59             type: 2
60           - container: vnf2
61             port_label: port1
62             etcd_vpp_switch_key: vswitch
63             type: 2
64       - name: vnf2-vnf3
65         description: vnf2 to vnf3 via vswitch memifs
66         type: 5
67         elements:
68           - container: vnf2
69             port_label: port2
70             etcd_vpp_switch_key: vswitch
71             type: 2
72           - container: vnf3
73             port_label: port1
74             etcd_vpp_switch_key: vswitch
75             type: 2
76       - name: vnf3-vnf4
77         description: vnf3 to vnf4 via vswitch memifs
78         type: 5
79         elements:
80           - container: vnf3
81             port_label: port2
82             etcd_vpp_switch_key: vswitch
83             type: 2
84           - container: vnf4
85             port_label: port1
86             etcd_vpp_switch_key: vswitch
87             type: 2
88
89   vnf.conf: |
90     vnf_plugin_config_version: 1
91     description: VNF config
92     vnf_entities:
93       - name: vnf1
94         container: vnf1
95         l2xconnects:
96           - port_labels:
97             - port1
98             - port2
99       - name: vnf2
100         container: vnf2
101         l2xconnects:
102           - port_labels:
103             - port1
104             - port2
105       - name: vnf3
106         container: vnf3
107         l2xconnects:
108           - port_labels:
109             - port1
110             - port2
111       - name: vnf4
112         container: vnf4
113         l2xconnects:
114           - port_labels:
115             - port1
116             - port2