2019-09-25 07:57:25 |
Hiroya Nakaya |
description |
Tacker can create vnfd, vnf, ns and vnffg in Undefined project by admin user
The next is an example of creating vnfd in Undefined project
$ openstack vnf descriptor create --tenant-id aaaa --vnfd-file samples/tosca-templates/vnfd/tosca-vnfd-hello-world.yaml hello-world
+-----------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------+-----------------------------------------------------------------------------+
| attributes | { |
| | "vnfd": { |
| | "tosca_definitions_version": "tosca_simple_profile_for_nfv_1_0_0", |
| | "description": "Demo example", |
| | "topology_template": { |
| | "node_templates": { |
| | "VDU1": { |
| | "type": "tosca.nodes.nfv.VDU.Tacker", |
| | "properties": { |
| | "image": "cirros-0.4.0-x86_64-disk", |
| | "mgmt_driver": "noop", |
| | "config": "param0: key1\nparam1: key2\n", |
| | "availability_zone": "nova" |
| | }, |
| | "capabilities": { |
| | "nfv_compute": { |
| | "properties": { |
| | "mem_size": "512 MB", |
| | "num_cpus": 1, |
| | "disk_size": "1 GB" |
| | } |
| | } |
| | } |
| | }, |
| | "VL2": { |
| | "type": "tosca.nodes.nfv.VL", |
| | "properties": { |
| | "vendor": "Tacker", |
| | "network_name": "net0" |
| | } |
| | }, |
| | "VL1": { |
| | "type": "tosca.nodes.nfv.VL", |
| | "properties": { |
| | "vendor": "Tacker", |
| | "network_name": "net_mgmt" |
| | } |
| | }, |
| | "CP1": { |
| | "type": "tosca.nodes.nfv.CP.Tacker", |
| | "requirements": [ |
| | { |
| | "virtualLink": { |
| | "node": "VL1" |
| | } |
| | }, |
| | { |
| | "virtualBinding": { |
| | "node": "VDU1" |
| | } |
| | } |
| | ], |
| | "properties": { |
| | "anti_spoofing_protection": false, |
| | "management": true, |
| | "order": 0 |
| | } |
| | }, |
| | "CP2": { |
| | "type": "tosca.nodes.nfv.CP.Tacker", |
| | "requirements": [ |
| | { |
| | "virtualLink": { |
| | "node": "VL2" |
| | } |
| | }, |
| | { |
| | "virtualBinding": { |
| | "node": "VDU1" |
| | } |
| | } |
| | ], |
| | "properties": { |
| | "anti_spoofing_protection": false, |
| | "order": 1 |
| | } |
| | }, |
| | "CP3": { |
| | "type": "tosca.nodes.nfv.CP.Tacker", |
| | "requirements": [ |
| | { |
| | "virtualLink": { |
| | "node": "VL3" |
| | } |
| | }, |
| | { |
| | "virtualBinding": { |
| | "node": "VDU1" |
| | } |
| | } |
| | ], |
| | "properties": { |
| | "anti_spoofing_protection": false, |
| | "order": 2 |
| | } |
| | }, |
| | "VL3": { |
| | "type": "tosca.nodes.nfv.VL", |
| | "properties": { |
| | "vendor": "Tacker", |
| | "network_name": "net1" |
| | } |
| | } |
| | } |
| | }, |
| | "metadata": { |
| | "template_name": "sample-tosca-vnfd" |
| | } |
| | } |
| | } |
| created_at | 2019-09-25 06:59:06.320273 |
| description | Demo example |
| id | 660f3b88-7226-4d0f-91ea-84c34d32ff08 |
| name | hello-world |
| project_id | aaaa |
| service_types | [u'vnfd'] |
| template_source | onboarded |
| updated_at | None |
+-----------------+-----------------------------------------------------------------------------+ |
Tacker can create vnfd, vnf, ns and vnffg in Undefined project by admin user
The next is an example of creating vnfd in Undefined project
```
$ openstack vnf descriptor create --tenant-id aaaa --vnfd-file samples/tosca-templates/vnfd/tosca-vnfd-hello-world.yaml hello-world
+-----------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------+-----------------------------------------------------------------------------+
| attributes | { |
| | "vnfd": { |
| | "tosca_definitions_version": "tosca_simple_profile_for_nfv_1_0_0", |
| | "description": "Demo example", |
| | "topology_template": { |
| | "node_templates": { |
| | "VDU1": { |
| | "type": "tosca.nodes.nfv.VDU.Tacker", |
| | "properties": { |
| | "image": "cirros-0.4.0-x86_64-disk", |
| | "mgmt_driver": "noop", |
| | "config": "param0: key1\nparam1: key2\n", |
| | "availability_zone": "nova" |
| | }, |
| | "capabilities": { |
| | "nfv_compute": { |
| | "properties": { |
| | "mem_size": "512 MB", |
| | "num_cpus": 1, |
| | "disk_size": "1 GB" |
| | } |
| | } |
| | } |
| | }, |
| | "VL2": { |
| | "type": "tosca.nodes.nfv.VL", |
| | "properties": { |
| | "vendor": "Tacker", |
| | "network_name": "net0" |
| | } |
| | }, |
| | "VL1": { |
| | "type": "tosca.nodes.nfv.VL", |
| | "properties": { |
| | "vendor": "Tacker", |
| | "network_name": "net_mgmt" |
| | } |
| | }, |
| | "CP1": { |
| | "type": "tosca.nodes.nfv.CP.Tacker", |
| | "requirements": [ |
| | { |
| | "virtualLink": { |
| | "node": "VL1" |
| | } |
| | }, |
| | { |
| | "virtualBinding": { |
| | "node": "VDU1" |
| | } |
| | } |
| | ], |
| | "properties": { |
| | "anti_spoofing_protection": false, |
| | "management": true, |
| | "order": 0 |
| | } |
| | }, |
| | "CP2": { |
| | "type": "tosca.nodes.nfv.CP.Tacker", |
| | "requirements": [ |
| | { |
| | "virtualLink": { |
| | "node": "VL2" |
| | } |
| | }, |
| | { |
| | "virtualBinding": { |
| | "node": "VDU1" |
| | } |
| | } |
| | ], |
| | "properties": { |
| | "anti_spoofing_protection": false, |
| | "order": 1 |
| | } |
| | }, |
| | "CP3": { |
| | "type": "tosca.nodes.nfv.CP.Tacker", |
| | "requirements": [ |
| | { |
| | "virtualLink": { |
| | "node": "VL3" |
| | } |
| | }, |
| | { |
| | "virtualBinding": { |
| | "node": "VDU1" |
| | } |
| | } |
| | ], |
| | "properties": { |
| | "anti_spoofing_protection": false, |
| | "order": 2 |
| | } |
| | }, |
| | "VL3": { |
| | "type": "tosca.nodes.nfv.VL", |
| | "properties": { |
| | "vendor": "Tacker", |
| | "network_name": "net1" |
| | } |
| | } |
| | } |
| | }, |
| | "metadata": { |
| | "template_name": "sample-tosca-vnfd" |
| | } |
| | } |
| | } |
| created_at | 2019-09-25 06:59:06.320273 |
| description | Demo example |
| id | 660f3b88-7226-4d0f-91ea-84c34d32ff08 |
| name | hello-world |
| project_id | aaaa |
| service_types | [u'vnfd'] |
| template_source | onboarded |
| updated_at | None |
+-----------------+-----------------------------------------------------------------------------+
``` |
|