Add_workflow_for_techpubs | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Panel | |
---|---|
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.
provides the script Spacevars 0 company createVnfmCsar.py
and a VNFD template file (vnfmSol001VnfdTemplate.yaml
) you can use to create a CSAR file for your deployment.
Note | ||
---|---|---|
| ||
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. Help information for these parameters is also available by entering: createVnfmCsar.py --usage
Info | ||
---|---|---|
| ||
In releases 8.1.0R1 and 8.1.0R2 the script was enhanced with new options. See the following table and use the help command to see the latest information. |
Caption | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
You have the option to include script parameters that modify the names assigned to the system and individual node instances when the system is deployed. Refer to System and Instance Naming in SBC SWe N:1 and Cloud-Based Systems for more information on the default naming conventions.
The following table summarizes the custom naming parameters.
Caption | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
|
The following tokens are allowed within the custom naming parameters:
%rg_index%
-- to include the redundancy group index.
%vnftype%
or %VNFTYPE%
-- to include the VNF type (for example: SSBC) in lower or uppercase.
To construct the SBC parameter actualCeName
for each node it is deploying, VNFM begins with the the custom_system_name
and
appends either the custom_oam_name
or custom_sbc_name
(based on node type), followed by a VM index. That is:
<custom_system_name><
custom_oam_name><VM index>
or
<custom_system_name><custom_sbc_name><VM index>
The VM index is a unique instance number for the node type, up to 5 in a 4:1 HA deployment. For clarity, if either the custom_oam_name
or custom_sbc_name
ends in a digit or the %rg_index%
token, VNFM automatically adds a dash before the VM index. Include the custom_vmname_dash
parameter to manually include a dash before the VM index.
The following custom naming parameters in a 4:1 HA deployment with two redundancy groups:
--custom_oam_name OAMX --custom_sbc_name GRP%rg_index% --custom_system_name EX-SSBC22
Yields the following node names:
EX-SSBC22-OAMX1, EX-SSBC22-OAMX2
EX-SSBC22-GRP1-1, EX-SSBC22-GRP1-2, EX-SSBC22-GRP1-3,EX-SSBC22-GRP1-4,EX-SSBC22-GRP1-5
EX-SSBC22-GRP2-1, EX-SSBC22-GRP2-2, EX-SSBC22-GRP2-3,EX-SSBC22-GRP2-4,EX-SSBC22-GRP2-5
Info | ||
---|---|---|
| ||
The
|
Complete the following steps to generate a CSAR file:
cloudTemplates.tar.gz
.-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.
Note | ||
---|---|---|
| ||
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 |
The following command creates a single CSAR package file for a 1:1 HA S-SBC deployment that uses virtio interfaces:
Code Block |
---|
createVnfmCsar.py -p "78.0201.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:
Code Block |
---|
createVnfmCsar.py -p "78.0201.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:
Code Block |
---|
createVnfmCsar.py -p "78.0201.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:
Code Block |
---|
createVnfmCsar.py -p "78.0201.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.
Caption | ||||
---|---|---|---|---|
| ||||
Pagebreak |
---|