2016-02-02 01:19:57 -06:00
|
|
|
..
|
|
|
|
Copyright 2014-2015 OpenStack Foundation
|
|
|
|
All Rights Reserved.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
not use this file except in compliance with the License. You may obtain
|
|
|
|
a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
License for the specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
|
|
|
|
===============
|
|
|
|
Getting Started
|
|
|
|
===============
|
|
|
|
|
2016-05-10 11:57:53 +05:30
|
|
|
Once tacker is installed successfully, follow the steps given below to get
|
|
|
|
started with tacker and validate the installation.
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
i). Create a sample-vnfd.yaml file with the following content:
|
2016-02-02 01:19:57 -06:00
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
|
|
|
|
|
|
|
|
description: Demo example
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
template_name: sample-tosca-vnfd
|
|
|
|
|
|
|
|
topology_template:
|
|
|
|
node_templates:
|
|
|
|
VDU1:
|
|
|
|
type: tosca.nodes.nfv.VDU.Tacker
|
|
|
|
capabilities:
|
|
|
|
nfv_compute:
|
|
|
|
properties:
|
|
|
|
num_cpus: 1
|
|
|
|
mem_size: 512 MB
|
|
|
|
disk_size: 1 GB
|
|
|
|
properties:
|
|
|
|
image: cirros-0.3.4-x86_64-uec
|
|
|
|
availability_zone: nova
|
|
|
|
mgmt_driver: noop
|
|
|
|
config: |
|
|
|
|
param0: key1
|
|
|
|
param1: key2
|
|
|
|
|
|
|
|
CP1:
|
|
|
|
type: tosca.nodes.nfv.CP.Tacker
|
|
|
|
properties:
|
|
|
|
management: true
|
2016-09-15 11:56:22 +09:00
|
|
|
order: 0
|
2016-08-31 14:37:53 +05:30
|
|
|
anti_spoofing_protection: false
|
|
|
|
requirements:
|
|
|
|
- virtualLink:
|
|
|
|
node: VL1
|
|
|
|
- virtualBinding:
|
|
|
|
node: VDU1
|
|
|
|
|
|
|
|
VL1:
|
|
|
|
type: tosca.nodes.nfv.VL
|
|
|
|
properties:
|
|
|
|
network_name: net_mgmt
|
|
|
|
vendor: Tacker
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
..
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
.. note::
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
You can find more sample tosca templates at https://github.com/openstack/tacker/tree/master/samples/tosca-templates/vnfd
|
2016-02-02 01:19:57 -06:00
|
|
|
|
|
|
|
ii). Create a sample vnfd.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
tacker vnfd-create --vnfd-file sample-vnfd.yaml <NAME>
|
2016-02-02 01:19:57 -06:00
|
|
|
..
|
|
|
|
|
|
|
|
iii). Create a VNF.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
tacker vnf-create --vnfd-id <VNFD_ID> <NAME>
|
2016-02-02 01:19:57 -06:00
|
|
|
..
|
|
|
|
|
|
|
|
iv). Check the status.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2016-08-31 14:37:53 +05:30
|
|
|
tacker vim-list
|
|
|
|
tacker vnfd-list
|
|
|
|
tacker vnf-list
|
|
|
|
tacker vnf-show <VNF_ID>
|
2016-02-02 01:19:57 -06:00
|
|
|
..
|