From 412c7ff14f3c539aa2f34c5f5ecb8fdc52bd33b7 Mon Sep 17 00:00:00 2001 From: stevenvanrossem Date: Fri, 5 May 2017 11:33:25 +0200 Subject: [PATCH] update example topologies --- src/emuvim/examples/custom_sap_vnfd.yml | 50 +++++++++++++++++++++++++ src/emuvim/examples/demo_topo_1pop.py | 2 +- src/emuvim/examples/demo_topo_3pop.py | 2 +- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100755 src/emuvim/examples/custom_sap_vnfd.yml diff --git a/src/emuvim/examples/custom_sap_vnfd.yml b/src/emuvim/examples/custom_sap_vnfd.yml new file mode 100755 index 0000000..2029c4d --- /dev/null +++ b/src/emuvim/examples/custom_sap_vnfd.yml @@ -0,0 +1,50 @@ + +--- +## +## Some general information regarding this +## VNF descriptor. +## +descriptor_version: "vnfd-schema-01" +vendor: "eu.sonata-nfv" +name: "sap_vnf" +version: "0.1" +author: "Steven Van Rossem, Ghent University, steven.vanrossem@intec.ugent.be" +description: "An empty ubuntu VNF; used as SAP" +## +## The virtual deployment unit. +## +virtual_deployment_units: + - id: "1" + vm_image: "sonatanfv/son-emu-sap" + vm_image_format: "docker" + resource_requirements: + cpu: + vcpus: 1 + memory: + size: 1 + size_unit: "GB" + storage: + size: 1 + size_unit: "GB" + connection_points: + - id: "vdu01:cp01" + type: "interface" + +## +## The virtual links that interconnect +## the different connections points. +## +virtual_links: + - id: "port" + connectivity_type: "E-Line" + connection_points_reference: + - "vdu01:cp02" + - "port" + +## +## The VNF connection points to the +## outside world. +## +connection_points: + - id: "port" + type: "interface" diff --git a/src/emuvim/examples/demo_topo_1pop.py b/src/emuvim/examples/demo_topo_1pop.py index 9c851ca..aaee446 100755 --- a/src/emuvim/examples/demo_topo_1pop.py +++ b/src/emuvim/examples/demo_topo_1pop.py @@ -60,7 +60,7 @@ def create_topology1(): # specify a vnfd file to be deployed as internal SAP: - sap_vnfd = 'vepc_sap_vnfd.yml' + sap_vnfd = 'custom_sap_vnfd.yml' dir_path = os.path.dirname(__file__) sap_vnfd_path = os.path.join(dir_path, sap_vnfd) # sap_vnfd_path = None diff --git a/src/emuvim/examples/demo_topo_3pop.py b/src/emuvim/examples/demo_topo_3pop.py index 4dd011c..8020fc8 100755 --- a/src/emuvim/examples/demo_topo_3pop.py +++ b/src/emuvim/examples/demo_topo_3pop.py @@ -67,7 +67,7 @@ def create_topology1(): # specify a vnfd file to be deployed as internal SAP: - sap_vnfd = 'vepc_sap_vnfd.yml' + sap_vnfd = 'custom_sap_vnfd.yml' dir_path = os.path.dirname(__file__) sap_vnfd_path = os.path.join(dir_path, sap_vnfd) # sap_vnfd_path = None -- 2.25.1