From: Philip Joseph Date: Tue, 27 Sep 2016 07:04:32 +0000 (+0530) Subject: Add ubuntu xenial network service X-Git-Tag: v2.0.2~6^2~38 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c737a09a0b99a810b7f8bc3b650ffb8d7de42ebd;p=osm%2Fdevops.git Add ubuntu xenial network service Signed-off-by: Philip Joseph --- diff --git a/Makefile b/Makefile index 5ec633e2..45dc061e 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ # BUILD_DIR = build -NSDS := gw_corpa_ns ims_allin1_corpa mwc16_gen_ns mwc16_pe_ns VyOS_ns cirros_ns cirros_2vnf_ns +NSDS := gw_corpa_ns ims_allin1_corpa mwc16_gen_ns mwc16_pe_ns VyOS_ns cirros_ns cirros_2vnf_ns ubuntu_xenial_ns NSD_SRC_DIR := src/nsd NSD_BUILD_DIR := $(BUILD_DIR)/nsd @@ -27,7 +27,7 @@ NSD_BUILD_DIRS := $(addprefix $(NSD_BUILD_DIR)/, $(NSDS)) NSD_PKGS := $(addsuffix .tar.gz, $(NSDS)) NSD_BUILD_PKGS := $(addprefix $(NSD_BUILD_DIR)_pkgs/, $(NSD_PKGS)) -VNFDS := 6wind_vnf gw_corpa_pe1_vnf gw_corpa_pe2_vnf ims_allin1_2p_vnf tidgen_mwc16_vnf VyOS_vnf cirros_vnf +VNFDS := 6wind_vnf gw_corpa_pe1_vnf gw_corpa_pe2_vnf ims_allin1_2p_vnf tidgen_mwc16_vnf VyOS_vnf cirros_vnf ubuntu_xenial_vnf VNFD_SRC_DIR := src/vnfd VNFD_BUILD_DIR := $(BUILD_DIR)/vnfd diff --git a/src/generate_descriptor_pkg.sh b/src/generate_descriptor_pkg.sh index ae0d7e10..cefd6239 100755 --- a/src/generate_descriptor_pkg.sh +++ b/src/generate_descriptor_pkg.sh @@ -65,7 +65,6 @@ INTF_TYPE='VIRTIO' VCPU=2 MEMORY=4096 STORAGE=10 -CLOUD_INIT='#cloud-config ' INTERFACES=1 function usage() { @@ -198,7 +197,7 @@ EOF # Cloud init file cloud-init-file: '${cif}' EOF - else + elif [[ -n ${CLOUD_INIT} ]]; then cat >>$desc_file < + # provider-network: + # overlay-type: VLAN + # segmentation_id: + vnfd-connection-point-ref: + # Specify the constituent VNFs + # member-vnf-index-ref - entry from constituent vnf + # vnfd-id-ref - VNFD id + # vnfd-connection-point-ref - connection point name in the VNFD + - nsd:member-vnf-index-ref: 1 + nsd:vnfd-id-ref: ubuntu_xenial_vnfd + # NOTE: Validate the entry below + nsd:vnfd-connection-point-ref: eth0 + - id: ubuntu_xenial_nsd_vld2 + name: data + short-name: data + type: ELAN + vim-network-name: net-corp + # vim-network-name: + # provider-network: + # overlay-type: VLAN + # segmentation_id: + vnfd-connection-point-ref: + # Specify the constituent VNFs + # member-vnf-index-ref - entry from constituent vnf + # vnfd-id-ref - VNFD id + # vnfd-connection-point-ref - connection point name in the VNFD + - nsd:member-vnf-index-ref: 1 + nsd:vnfd-id-ref: ubuntu_xenial_vnfd + # NOTE: Validate the entry below + nsd:vnfd-connection-point-ref: eth1 diff --git a/src/vnfd/ubuntu_xenial_vnf/icons/ubuntu-logo14.png b/src/vnfd/ubuntu_xenial_vnf/icons/ubuntu-logo14.png new file mode 100644 index 00000000..e9667839 Binary files /dev/null and b/src/vnfd/ubuntu_xenial_vnf/icons/ubuntu-logo14.png differ diff --git a/src/vnfd/ubuntu_xenial_vnf/ubuntu_xenial_vnfd.yaml b/src/vnfd/ubuntu_xenial_vnf/ubuntu_xenial_vnfd.yaml new file mode 100644 index 00000000..5d6ca2cd --- /dev/null +++ b/src/vnfd/ubuntu_xenial_vnf/ubuntu_xenial_vnfd.yaml @@ -0,0 +1,53 @@ +vnfd:vnfd-catalog: + vnfd: + - id: ubuntu_xenial_vnfd + name: ubuntu_xenial_vnfd + short-name: ubuntu_xenial_vnfd + description: Generated by OSM pacakage generator + vendor: OSM + version: '1.0' + + # Place the logo as png in icons directory and provide the name here + logo: ubuntu-logo14.png + + # Management interface + mgmt-interface: + vdu-id: ubuntu_xenial_vnfd-VM + + # Atleast one VDU need to be specified + vdu: + - id: ubuntu_xenial_vnfd-VM + name: ubuntu_xenial_vnfd-VM + description: ubuntu_xenial_vnfd-VM + count: 1 + + # Flavour of the VM to be instantiated for the VDU + vm-flavor: + vcpu-count: 2 + memory-mb: 4096 + storage-gb: 10 + + # Image including the full path + image: '/mnt/powervault/virtualization/vnfs/demos/ubuntu/ubuntu-16.06.img' + + external-interface: + # Specify the external interfaces + # There can be multiple interfaces defined + - name: eth0 + virtual-interface: + type: OM-MGMT + bandwidth: '0' + vpci: 0000:00:0a.0 + vnfd-connection-point-ref: eth0 + - name: eth1 + virtual-interface: + type: VIRTIO + bandwidth: '0' + vpci: 0000:00:0b.0 + vnfd-connection-point-ref: eth1 + + connection-point: + - name: eth0 + type: VPORT + - name: eth1 + type: VPORT