X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftemplates%2Fkubernetes%2Fconfigmaps%2Feth-1drcl2xcbase-eth-2memif-2drcl2xc-1horiz.yaml;h=9d8d700d488f66de8ad777b7539c774e207cd811;hb=2ef9fa5ba9b3f99ccfa984574ef31e56e325b068;hp=9b4c189cac7fc38e0a4f57cba1f26bc2b844ef29;hpb=e81d599029f31fb433089eecf0d160ab01719383;p=csit.git diff --git a/resources/templates/kubernetes/configmaps/eth-1drcl2xcbase-eth-2memif-2drcl2xc-1horiz.yaml b/resources/templates/kubernetes/configmaps/eth-1drcl2xcbase-eth-2memif-2drcl2xc-1horiz.yaml index 9b4c189cac..9d8d700d48 100644 --- a/resources/templates/kubernetes/configmaps/eth-1drcl2xcbase-eth-2memif-2drcl2xc-1horiz.yaml +++ b/resources/templates/kubernetes/configmaps/eth-1drcl2xcbase-eth-2memif-2drcl2xc-1horiz.yaml @@ -12,61 +12,81 @@ data: - "172.17.0.1:22379" sfc.conf: | - sfc_controller_config_version: 1 + sfc_controller_config_version: 2 description: $$TEST_NAME$$ - host_entities: - - name: vswitch - sfc_entities: - - name: vswitch-vnf1 - description: vswitch to VNF1 - memif - type: 4 - elements: - - container: vswitch - port_label: $$VSWITCH_IF1$$ - etcd_vpp_switch_key: vswitch - type: 5 - - container: vnf1 - port_label: port1 - etcd_vpp_switch_key: vswitch - type: 2 - - name: vswitch-vnf2 - description: VNF2 to vswitch - memif - type: 4 - elements: - - container: vswitch - port_label: $$VSWITCH_IF2$$ - etcd_vpp_switch_key: vswitch - type: 5 - - container: vnf2 - port_label: port2 - etcd_vpp_switch_key: vswitch - type: 2 - - name: vnf1-vnf2 - description: vnf1 to vnf2 via vswitch - memifs - type: 6 - elements: - - container: vnf1 - port_label: port2 - etcd_vpp_switch_key: vswitch - type: 2 - - container: vnf2 - port_label: port1 - etcd_vpp_switch_key: vswitch - type: 2 - vnf.conf: | - vnf_plugin_config_version: 1 - description: VNF config - vnf_entities: - - name: vnf1 - container: vnf1 - l2xconnects: - - port_labels: - - port1 - - port2 - - name: vnf2 - container: vnf2 - l2xconnects: - - port_labels: - - port1 - - port2 + system_parameters: + mtu: 9000 + + network_pod_to_node_map: + - pod: vnf1 + node: vswitch + - pod: vnf2 + node: vswitch + + network_nodes: + - metadata: + name: vswitch + spec: + node_type: host + interfaces: + - name: $$VSWITCH_IF1$$ + if_type: ethernet + - name: $$VSWITCH_IF2$$ + if_type: ethernet + + network_services: + - metadata: + name: my-network-service + spec: + network_pods: + + - metadata: + name: vnf1 + spec: + pod_type: vppcontainer + interfaces: + - name: port1 + if_type: memif + - name: port2 + if_type: memif + - metadata: + name: vnf2 + spec: + pod_type: vppcontainer + interfaces: + - name: port1 + if_type: memif + - name: port2 + if_type: memif + + connections: + + - conn_type: l2pp # l2x eth1 to vnf1 port 1 + pod_interfaces: + - vnf1/port1 + node_interfaces: + - vswitch/$$VSWITCH_IF1$$ + + - conn_type: l2pp + pod_interfaces: # l2x the ports on vnf1 + - vnf1/port1 + - vnf1/port2 + + - conn_type: l2pp + conn_method: direct + pod_interfaces: # direct memif between vnf1 to vnf2 + - vnf1/port2 + - vnf2/port1 + + - conn_type: l2pp + pod_interfaces: # l2x the ports on vnf2 + - vnf2/port1 + - vnf2/port2 + + - conn_type: l2mp # l2x eth2 to vnf2 port 2 + pod_interfaces: + - vnf2/port2 + node_interfaces: + - vswitch/$$VSWITCH_IF2$$ +