- id: ${name}
name: ${name}
short-name: ${name}
- description: Generated by OSM pacakage generator
+ description: Generated by OSM package generator
vendor: ${VENDOR}
version: '1.0'
# Management interface
mgmt-interface:
- vdu-id: ${name}-VM
+ cp: vnf-cp0
# Atleast one VDU need to be specified
vdu:
type: EXTERNAL
virtual-interface:
type: VIRTIO
- bandwidth: '0'
- vpci: '0000:00:0a.0'
- external-connection-point-ref: eth0
+ external-connection-point-ref: vnf-cp0
EOF
# Add external interfaces
for i in `seq 1 ${INTERFACES}`; do
eth=$(($i))
- pci=$(get_pci $eth)
cat >>$desc_file <<EOF
- name: eth${eth}
type: EXTERNAL
virtual-interface:
type: ${INTF_TYPE}
- bandwidth: '0'
- vpci: '0000:00:${pci}.0'
- external-connection-point-ref: eth${eth}
+ external-connection-point-ref: vnf-cp${eth}
EOF
done
for i in `seq 0 ${INTERFACES}`; do
eth=$(($i))
cat >>$desc_file <<EOF
- - name: eth${eth}
- type: ${CP_TYPE}
+ - name: vnf-cp${eth}
+ type: ${CP_TYPE}
EOF
done
- id: ${name}
name: ${name}
short-name: ${name}
- description: Generated by OSM pacakage generator
+ description: Generated by OSM package generator
vendor: ${VENDOR}
version: '1.0'
# Add management VLD
cat >>$desc_file <<EOF
- - id: ${name}_vld0
- name: management
- short-name: management
- type: ELAN
- mgmt-network: 'true'
- # 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
+ - id: ${name}_vld0
+ name: management
+ short-name: management
+ type: ELAN
+ mgmt-network: 'true'
+ # 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
+ - member-vnf-index-ref: 1
+ vnfd-id-ref: ${vnfd}
+ # NOTE: Validate the entry below
+ vnfd-connection-point-ref: vnf-cp0
EOF
# Add rest of VLDs
for i in `seq 1 ${INTERFACES}`; do
eth=$(($i))
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
- # 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: eth${eth}
+ - id: ${name}_vld${i}
+ name: ${name}_vld${i}
+ short-name: ${name}_vld${i}
+ 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
+ - member-vnf-index-ref: 1
+ vnfd-id-ref: ${vnfd}
+ # NOTE: Validate the entry below
+ vnfd-connection-point-ref: vnf-cp${eth}
EOF
- done
+ done
if [ $VERBOSE == true ]; then
echo "INFO: Created $desc_file"