VCPU=2
MEMORY=4096
STORAGE=10
-INTERFACES=1
+INTERFACES=2
function usage() {
cat <<EOF
--vendor : Vendor name for descriptor. Default OSM
- --interface-type : Interface type [VIRTIO|SR-IOV|PCI-PASSTHROUGH|E1000|OM-MGMT]
+ --interface-type : Interface type [VIRTIO|SR-IOV|PCI-PASSTHROUGH|E1000]
Default VIRTIO
VM Flavour options:
--cloud-init : Cloud init script. Will be ignored if
cloud-init-file is specified
- --interfaces : Number of external interfaces. Default 1.
+ --interfaces : Number of external interfaces. Default 2.
End of create descriptor specific options
# There can be multiple interfaces defined
EOF
+ # Add mgmt interface
+ cat >>$desc_file <<EOF
+ - name: eth0
+ virtual-interface:
+ type: OM-MGMT
+ bandwidth: '0'
+ vpci: 0000:00:0a.0
+ vnfd-connection-point-ref: eth0
+EOF
+
# Add external interfaces
- for i in `seq 1 ${INTERFACES}`; do
+ for i in `seq 2 ${INTERFACES}`; do
eth=$(($i - 1))
pci=$(get_pci $eth)
cat >>$desc_file <<EOF
# Networks for the VNFs
EOF
- for i in `seq 1 ${INTERFACES}`; do
+ # Add management VLD
+ cat >>$desc_file <<EOF
+ - id: ${name}_vld${i}
+ name: management
+ short-name: management
+ type: ELAN
+ # vim-network-name: <update>
+ # provider-network:
+ # overlay-type: VLAN
+ # segmentation_id: <update>
+ 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: ${vnfd}
+ # NOTE: Validate the entry below
+ nsd:vnfd-connection-point-ref: eth0
+EOF
+
+ # Add rest of VLDs
+ for i in `seq 2 ${INTERFACES}`; do
eth=$(($i - 1))
cat >>$desc_file <<EOF
- id: ${name}_vld${i}
name: ${name}_vld${i}
+ short-name: ${name}_vld${i}
type: ELAN
+ # vim-network-name: <update>
# provider-network:
# overlay-type: VLAN
- # physical-network: <update>
# segmentation_id: <update>
vnfd-connection-point-ref:
# Specify the constituent VNFs
name: data
short-name: data
type: ELAN
+ vim-network-name: net-corp
provider-network:
overlay-type: VLAN
vnfd-connection-point-ref:
name: management
short-name: management
type: ELAN
+ vim-network-name: net-mgmtOS
provider-network:
overlay-type: VLAN
- physical-network: net-mgmtOS
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: eth0
name: cirros_2vnf_nsd_vld1
short-name: cirros_2vnf_nsd_vld1
type: ELAN
+ # vim-network-name: <update>
# provider-network:
# overlay-type: VLAN
- # physical-network: <update>
# segmentation_id: <update>
vnfd-connection-point-ref:
# Specify the constituent VNFs
- id: cirros_nsd_vld1
name: cirros_nsd_vld1
type: ELAN
+ # vim-network-name: <update>
# provider-network:
# overlay-type: VLAN
- # physical-network: <update>
# segmentation_id: <update>
vnfd-connection-point-ref:
# Specify the constituent VNFs
- id: connection_0
name: connection_0
short-name: connection_0
+ vim-network-name: mgmt
type: ELAN
provider-network:
overlay-type: VLAN
- physical-network: mgmt
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: eth1
name: connection_1
short-name: connection_1
type: ELAN
+ vim-network-name: mgmt
provider-network:
overlay-type: VLAN
- physical-network: mgmt
vnfd-connection-point-ref:
- member-vnf-index-ref: '2'
vnfd-connection-point-ref: eth1
name: connection_2
short-name: connection_2
type: ELAN
+ vim-network-name: mwc1
provider-network:
overlay-type: VLAN
- physical-network: mwc1
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: eth0
name: connection_3
short-name: connection_3
type: ELAN
+ vim-network-name: mwc2
provider-network:
overlay-type: VLAN
- physical-network: mwc2
vnfd-connection-point-ref:
- member-vnf-index-ref: '2'
vnfd-connection-point-ref: eth0
name: connection_4
short-name: connection_4
type: ELAN
+ vim-network-name: mwc16data1
provider-network:
overlay-type: VLAN
- physical-network: mwc16data1
segmentation_id: '101'
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
name: connection_5
short-name: connection_5
type: ELAN
+ vim-network-name: mwc16data2
provider-network:
overlay-type: VLAN
- physical-network: mwc16data2
segmentation_id: '102'
vnfd-connection-point-ref:
- member-vnf-index-ref: '2'
name: data
short-name: data
type: ELAN
+ vim-network-name: net-corp:108
provider-network:
overlay-type: VLAN
physical-network: net-corp
name: management
short-name: management
type: ELAN
+ vim-network-name: net-mgmtOS
provider-network:
overlay-type: VLAN
- physical-network: net-mgmtOS
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: eth1
name: connection 0
short-name: connection 0
type: ELAN
+ vim-network-name: mwc
provider-network:
overlay-type: VLAN
- physical-network: mwc
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: eth0
name: connection 1
short-name: connection 1
type: ELAN
+ vim-network-name: mgmt
provider-network:
overlay-type: VLAN
- physical-network: mgmt
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: eth1
name: connection 2
short-name: connection 2
type: ELAN
+ vim-network-name: mwc16data1
provider-network:
overlay-type: VLAN
- physical-network: mwc16data1
segmentation_id: '3000'
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
name: connection 3
short-name: connection 3
type: ELAN
+ vim-network-name: mwc16data2
provider-network:
overlay-type: VLAN
- physical-network: mwc16data2
segmentation_id: '3000'
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
name: 6WindTR1.1.2__3 to OpenStack
short-name: 6WindTR1.1.2__3 to OpenStack
type: ELAN
+ vim-network-name: interDC
provider-network:
overlay-type: VLAN
- physical-network: interDC
vnfd-connection-point-ref:
- member-vnf-index-ref: '3'
vnfd-connection-point-ref: xe3
vnfd-id-ref: 6WindTR1.1.2
- id: 6WindTR1.1.2__1 enty point
name: 6WindTR1.1.2__1 enty point
- short-name: 6WindTR1.1.2__1 enty point
+ short-name: 6WindTR1.1.2__1 entry point
type: ELAN
+ vim-network-name: mwc16data1
provider-network:
overlay-type: VLAN
- physical-network: mwc16data1
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: xe2
name: 6WindTR1.1.2__2 entry point
short-name: 6WindTR1.1.2__2 entry point
type: ELAN
+ vim-network-name: mwc16data2
provider-network:
overlay-type: VLAN
- physical-network: mwc16data2
vnfd-connection-point-ref:
- member-vnf-index-ref: '2'
vnfd-connection-point-ref: xe2
- id: management
name: management
short-name: management
+ vim-network-name: mgmt
provider-network:
overlay-type: VLAN
- physical-network: mgmt
type: ELAN
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-id-ref: 6WindTR1.1.2
- id: 6WindTR1.1.2__1-6WindTR1.1.2__3
name: 6WindTR1.1.2__1-6WindTR1.1.2__3
+ short-name: 6WindTR1.1.2__1-6WindTR1.1.2__3
type: ELAN
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'