In this section:
When you use Virtual Network Function Manager (VNFM) to deploy SBC SWe in an OpenStack cloud environment you must provide it with a Cloud Service Archive (CSAR) package file that is appropriate for the type of deployment you want to create. The CSAR package includes a Virtual Network Function Descriptor (VNFD) file that defines the characteristics of your deployment.
createVnfmCsar.py
and a VNFD template file (vnfmSol001VnfdTemplate.yaml
) you can use to create a CSAR file for your deployment.
The script creates one or more CSAR files based on the run-time parameters you specify. Note that the default value for several parameters is "all." If you run the script without specifying any parameters, the script uses its defaults and creates multiple CSAR files for all possible values and combinations for these parameters. Use the run-time parameters to restrict the output and create a CSAR file that is tailored to a specific deployment model.
The following table describes the script run-time parameters.
Complete the following steps to generate a CSAR file:
-p
and -s
parameters are required. All other parameters are optional, but including a specific value for the -f
, -h
, -i
, and --personality
parameters ensures you generate a single CSAR file for a single deployment type.
The CSAR script enters a name for the SBC image file in the VNFD file that it derives using the values you specified for the -p
and -s
parameters. The name of the SBC image file (qcow2 file) you upload to Glance must match this name. Using the the values 8.01.00 and R000, the script concatenate these values and prepends the resulting string with sbc-V0
. For this example, VNFM would require the image name to be "sbc-V08.01.00R000".
The following command creates a single CSAR package file for a 1:1 HA S-SBC deployment that uses virtio interfaces:
createVnfmCsar.py -p "8.01.00" -s "R000" -f std -h ha -i virtio --personality ssbc
The following command creates a single CSAR package file for a 3:1 HA M-SBC deployment that uses SR-IOV interfaces and includes a 1:1 HA pair of OAM nodes:
createVnfmCsar.py -p "8.01.00" -s "R000" -f std -h n_1_ha --num_instances 4 -i sriov --personality msbc --num_oam_instances 2
The following command creates a single CSAR package file for a 1:1 HA I-SBC deployment that uses an IPv6 provider network:
createVnfmCsar.py -p "8.01.00" -s "R000" -f std -h ha -i provider --ipv6 --personality isbc
The following command creates three CSAR packages file for 1:1 HA S-SBC deployments – one with virtio, one with SR-IOV, and one with provider interfaces:
createVnfmCsar.py -p "8.0i.00" -s "R000" -f std -h ha --personality ssbc
The createVnfmCsar.py
script provides an option to create multiple redundancy groups within the same cluster. These redundancy groups will share the same configuration and are managed by the same OAM nodes. When you set the num_sbc_rg
option to a value greater than one, the script generates a VNFD file that includes additional sets of parameters for the number of redundancy groups specified. During instantiation, VNFM presents multiple sets of parameters where appropriate, enabling you to define the parameters that are specific to an individual redundancy group, such as its name. The redundancy groups are uniquely identified in the interface by prepending names with rg#_
.
To create multiple SBC redundancy groups that are managed by the same OAM nodes:
createVnfmCsar.py
script using the option num_sbc_rg
to specify the number of SBC redundancy groups you want to create. createVnfmCsar
.py -p 8.01.00 -s R000 -i virtio -f std -h n_1_ha
--num_instances 5 --num_oam_instances 2 --personality msbc --omit_ipv6 --num_sbc_rg 2
Instantiate the VNF using the CSAR package you generated. VNFM replicates any parameters needed to define each redundancy group. The following figure shows a part of the VNFM instantiation screen requesting SBC system names for two redundancy groups. Similarly, VNFM replicates other instantiation parameters (Networks, Flavors, Manual IP) for each redundancy group.