Tacker VNF Manager (VNFM) component manages the life-cycle of a Virtual Network Function (VNF). VNFM takes care of deployment, monitoring, scaling and removal of VNFs on a Virtual Infrastructure Manager (VIM).
TOSCA VNFD templates can be onboarded to Tacker VNFD Catalog using following command:
tacker vnfd-create --vnfd-file <yaml file path> <VNFD-NAME>
Note
Users can find various sample TOSCA templates at https://github.com/openstack/tacker/tree/master/samples/tosca-templates/vnfd
There are two ways to create a VNF in Tacker.
In this method, a TOSCA VNFD template is first onboarded into Tacker VNFD catalog. This VNFD is then used to create VNF. This is most common way of creating VNFs in Tacker.
i). Onboard a TOSCA VNFD template.
tacker vnfd-create --vnfd-file <yaml file path> <VNFD-NAME>
ii). Create a VNF.
tacker vnf-create --vnfd-name <VNFD-FILE-NAME> <VNF-NAME>
tacker vnfd-create --vnfd-file sample-vnfd-hello-world.yaml hello-world-vnfd
tacker vnf-create --vnfd-name hello-world-vnfd hw-vnf
In this method, VNF is created directly from the TOSCA template without onboarding the template into Tacker VNFD Catalog.
tacker vnf-create --vnfd-template <VNFD-FILE-NAME> <VNF-NAME>
This method is recommended when NFV Catalog is maintained outside Tacker and Tacker is primarily used as a NFV workflow engine.
tacker vnf-create --vnfd-template sample-vnfd-hello-world.yaml hw-vnf
Note
vnfd-list command will show only the onboarded VNFDs. To list the VNFDs created internally for direct VNF instantiation, use ‘–template-source inline’ flag. To list both onboarded and inline VNFDs, use ‘–template-source all’ flag. The default flag for vnfd-list command is ‘–template-source onboarded’.
tacker vnfd-list --template-source inline
tacker vnfd-list --template-source all
Status of various VNFM resources can be checked by following commands.
tacker vim-list
tacker vnfd-list
tacker vnf-list
tacker vnf-show <VNF_ID>
tacker vnfd-show <VNFD_ID>
VNFs and VNFDs can be deleted as shown below.
tacker vnf-delete <VNF_ID/NAME>
tacker vnfd-delete <VNFD_ID/NAME>
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.