aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml42
-rw-r--r--sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml42
-rw-r--r--sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml42
3 files changed, 126 insertions, 0 deletions
diff --git a/sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml b/sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml
new file mode 100644
index 00000000..43cded97
--- /dev/null
+++ b/sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml
@@ -0,0 +1,42 @@
+tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
+description: test-case1
+
+topology_template:
+ description: topology-template-test1
+ inputs:
+ net_src_id:
+ type: string
+ ip_dst:
+ type: string
+
+ node_templates:
+ Forwarding_path1:
+ type: tosca.nodes.nfv.FP.Tacker
+ description: creates path
+ properties:
+ id: 1
+ policy:
+ type: ACL
+ criteria:
+ - network_src_port_id: { get_input: net_src_id }
+ - destination_port_range: 80-80
+ - ip_proto: 6
+ - ip_dst_prefix: { get_input: ip_dst }
+ path:
+ - forwarder: VNFD1
+ capability: CP1
+ - forwarder: VNFD2
+ capability: CP1
+
+ groups:
+ VNFFG1:
+ type: tosca.groups.nfv.VNFFG
+ description: creates chain
+ properties:
+ vendor: tacker
+ version: 1.0
+ number_of_endpoints: 2
+ dependent_virtual_link: [VL1,VL1]
+ connection_point: [CP1,CP1]
+ constituent_vnfs: [VNFD1,VNFD2]
+ members: [Forwarding_path1] \ No newline at end of file
diff --git a/sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml b/sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml
new file mode 100644
index 00000000..ba2d8ebf
--- /dev/null
+++ b/sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml
@@ -0,0 +1,42 @@
+tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
+description: test-case2: HTTP Test
+
+topology_template:
+ description: topology-template-test2
+ inputs:
+ net_src_id:
+ type: string
+ ip_dst:
+ type: string
+
+ node_templates:
+ Forwarding_path1:
+ type: tosca.nodes.nfv.FP.Tacker
+ description: creates path
+ properties:
+ id: 1
+ policy:
+ type: ACL
+ criteria:
+ - network_src_port_id: { get_input: net_src_id }
+ - destination_port_range: 80-80
+ - ip_proto: 6
+ - ip_dst_prefix: { get_input: ip_dst }
+ path:
+ - forwarder: VNFD1
+ capability: CP1
+ - forwarder: VNFD2
+ capability: CP1
+
+ groups:
+ VNFFG1:
+ type: tosca.groups.nfv.VNFFG
+ description: creates chain
+ properties:
+ vendor: tacker
+ version: 1.0
+ number_of_endpoints: 2
+ dependent_virtual_link: [VL1,VL1]
+ connection_point: [CP1,CP1]
+ constituent_vnfs: [VNFD1,VNFD2]
+ members: [Forwarding_path1] \ No newline at end of file
diff --git a/sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml b/sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml
new file mode 100644
index 00000000..5d46d24b
--- /dev/null
+++ b/sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml
@@ -0,0 +1,42 @@
+tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
+description: test-case2: SSH Test
+
+topology_template:
+ description: topology-template-test2
+ inputs:
+ net_src_id:
+ type: string
+ ip_dst:
+ type: string
+
+ node_templates:
+ Forwarding_path1:
+ type: tosca.nodes.nfv.FP.Tacker
+ description: creates path
+ properties:
+ id: 2
+ policy:
+ type: ACL
+ criteria:
+ - network_src_port_id: { get_input: net_src_id }
+ - destination_port_range: 22-22
+ - ip_proto: 6
+ - ip_dst_prefix: { get_input: ip_dst }
+ path:
+ - forwarder: VNFD1
+ capability: CP1
+ - forwarder: VNFD2
+ capability: CP1
+
+ groups:
+ VNFFG1:
+ type: tosca.groups.nfv.VNFFG
+ description: creates chain
+ properties:
+ vendor: tacker
+ version: 1.0
+ number_of_endpoints: 2
+ dependent_virtual_link: [VL1,VL1]
+ connection_point: [CP1,CP1]
+ constituent_vnfs: [VNFD1,VNFD2]
+ members: [Forwarding_path1] \ No newline at end of file