Skip to content

Instantly share code, notes, and snippets.

@aneeshkp
Last active October 7, 2016 17:16
Show Gist options
  • Select an option

  • Save aneeshkp/a90db41b0e88d7d0b4dc8deaa202cd78 to your computer and use it in GitHub Desktop.

Select an option

Save aneeshkp/a90db41b0e88d7d0b4dc8deaa202cd78 to your computer and use it in GitHub Desktop.
NSD for vCPE DEMO
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: VCPE demo NSD
metadata:
ID: VCPE demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
inputs:
node_templates:
VNF1: # Fire wall
type: tosca.nodes.nfv.VNF.VYOS
properties:
vim_id: openstack # ManageIQ provider entry for openstack cloud
vendor: vyatta
id: 1
version: 1
ip_address1: 172.28.3.1
ansible_template_name: VCPE_DEMO_FORK_VYOS_FW_TEMPLATE
ansible_vim_id: Ansible Tower Configuration Manager
requirements:
- virtualLink1: QCT-out # the subsititution mappings in VNF1 has virtualLink1: [CP1, virtualLink]
- virtualLink2: FW # the subsititution mappings in VNF1 has virtualLink2: [CP2, virtualLink]
- virtualLink3: # the subsititution mappings in VNF1 has virtualLink3: [CP3, virtualLink]
- virtualLink4: # the subsititution mappings in VNF1 has virtualLink4: [CP4, virtualLink]
- virtualLinkMgmt: OOB-mgmt # the subsititution mappings in VNF1 has virtualLinkMgmt: [CP5, virtualLink]
capabilities:
forwarder1: # the subsititution mappings in VNF1 has forwarder1: [CP1, forwarder]
forwarder2: # the subsititution mappings in VNF1 has forwarder2: [CP2, forwarder]
forwarder3: # the subsititution mappings in VNF1 has forwarder3: [CP3, forwarder]
VNF2: #Router
type: tosca.nodes.nfv.VNF.VYOS
properties:
vim_id: openstack # ManageIQ provider entry for openstack cloud
vendor: vyatta
id: 2
version: 1
ip_address1: 172.28.1.1
ip_address2: 192.168.1.1
ansible_template_name: VCPE_DEMO_FORK_VYOS_ROUTER_TEMPLATE
ansible_vim_id: Ansible Tower Configuration Manager
requirements:
- virtualLink1: VAS # the subsititution mappings in VNF1 has virtualLink1: [CP1, virtualLink]
- virtualLink2: ISP-NET # the subsititution mappings in VNF1 has virtualLink2: [CP2, virtualLink]
- virtualLink3: # the subsititution mappings in VNF1 has virtualLink3: [CP3, virtualLink]
- virtualLink4: # the subsititution mappings in VNF1 has virtualLink4: [CP4, virtualLink]
- virtualLinkMgmt: OOB-mgmt # the subsititution mappings in VNF1 has virtualLinkMgmt: [CP5, virtualLink]
capabilities:
forwarder1: # the subsititution mappings in VNF1 has forwarder1: [CP1, forwarder]
forwarder2: # the subsititution mappings in VNF1 has forwarder2: [CP2, forwarder]
forwarder3: # the subsititution mappings in VNF1 has forwarder3: [CP3, forwarder]
VNF3: # Parent Control
type: tosca.nodes.nfv.VNF.VYOS
properties:
vim_id: openstack # ManageIQ provider entry for openstack cloud
vendor: vyatta
id: 3
version: 1
ansible_template_name: VCPE_DEMO_FORK_VYOS_PC_TEMPLATE
ansible_vim_id: Ansible Tower Configuration Manager
requirements:
- virtualLink1: FW # the subsititution mappings in VNF1 has virtualLink1: [CP1, virtualLink]
- virtualLink2: VAS # the subsititution mappings in VNF1 has virtualLink2: [CP2, virtualLink]
- virtualLink3: # the subsititution mappings in VNF1 has virtualLink3: [CP3, virtualLink]
- virtualLink4: # the subsititution mappings in VNF1 has virtualLink4: [CP4, virtualLink]
- virtualLinkMgmt: OOB-mgmt # the subsititution mappings in VNF1 has virtualLinkMgmt: [CP5, virtualLink]
capabilities:
forwarder1: # the subsititution mappings in VNF1 has forwarder1: [CP1, forwarder]
forwarder2: # the subsititution mappings in VNF1 has forwarder2: [CP2, forwarder]
forwarder3: # the subsititution mappings in VNF1 has forwarder3: [CP3, forwarder]
VNF4: #VPN
type: tosca.nodes.nfv.VNF.VYOS
properties:
vim_id: openstack # ManageIQ provider entry for openstack cloud
vendor: vyatta
id: 4
version: 1
ansible_template_name: VCPE_DEMO_FORK_VYOS_VPN_TEMPLATE
ansible_vim_id: Ansible Tower Configuration Manager
requirements:
- virtualLink1: FW # the subsititution mappings in VNF1 has virtualLink1: [CP1, virtualLink]
- virtualLink2: VAS # the subsititution mappings in VNF1 has virtualLink2: [CP2, virtualLink]
- virtualLink3: # the subsititution mappings in VNF1 has virtualLink3: [CP3, virtualLink]
- virtualLink4: # the subsititution mappings in VNF1 has virtualLink4: [CP4, virtualLink]
- virtualLinkMgmt: OOB-mgmt # the subsititution mappings in VNF1 has virtualLinkMgmt: [CP5, virtualLink]
capabilities:
forwarder1: # the subsititution mappings in VNF1 has forwarder1: [CP1, forwarder]
forwarder2: # the subsititution mappings in VNF1 has forwarder2: [CP2, forwarder]
forwarder3: # the subsititution mappings in VNF1 has forwarder3: [CP3, forwarder]
VNF5: #NTOP
type: tosca.nodes.nfv.VNF.DEBIAN
properties:
vim_id: openstack # ManageIQ provider entry for openstack cloud
vendor: centos
id: 5
version: 1
ansible_template_name: VCPE_DEMO_FORK_NTOP_TEMPLATE
ansible_vim_id: Ansible Tower Configuration Manager
requirements:
- virtualLink1: VAS # the subsititution mappings in VNF1 has virtualLink1: [CP1, virtualLink]
- virtualLink2: # the subsititution mappings in VNF1 has virtualLink2: [CP2, virtualLink]
- virtualLink3: # the subsititution mappings in VNF1 has virtualLink3: [CP3, virtualLink]
- virtualLink4: # the subsititution mappings in VNF1 has virtualLink4: [CP4, virtualLink]
- virtualLinkMgmt: OOB-mgmt # the subsititution mappings in VNF1 has virtualLinkMgmt: [CP5, virtualLink]
capabilities:
forwarder1: # the subsititution mappings in VNF1 has forwarder1: [CP1, forwarder]
forwarder2: # the subsititution mappings in VNF1 has forwarder2: [CP2, forwarder]
forwarder3: # the subsititution mappings in VNF1 has forwarder3: [CP3, forwarder]
VNF6: #NET-Drive
type: tosca.nodes.nfv.VNF.CENTOS
properties:
vim_id: openstack # ManageIQ provider entry for openstack cloud
vendor: centos
id: 6
version: 1
requirements:
- virtualLink1: VAS # the subsititution mappings in VNF1 has virtualLink1: [CP1, virtualLink]
- virtualLink2: # the subsititution mappings in VNF1 has virtualLink2: [CP2, virtualLink]
- virtualLink3: # the subsititution mappings in VNF1 has virtualLink3: [CP3, virtualLink]
- virtualLink4: # the subsititution mappings in VNF1 has virtualLink4: [CP4, virtualLink]
- virtualLinkMgmt: OOB-mgmt # the subsititution mappings in VNF1 has virtualLinkMgmt: [CP5, virtualLink]
capabilities:
forwarder1: # the subsititution mappings in VNF1 has forwarder1: [CP1, forwarder]
forwarder2: # the subsititution mappings in VNF1 has forwarder2: [CP2, forwarder]
forwarder3: # the subsititution mappings in VNF1 has forwarder3: [CP3, forwarder]
CPnsd1:
type: tosca.nodes.nfv.CP
properties:
type:
requirements:
- virtualBinding:
node: VNF1
- virtualLink:
node: QCT-out
CPnsd2:
type: tosca.nodes.nfv.CP
properties:
type:
requirements:
- virtualBinding:
node: VNF3
- virtualLink:
node: ISP-NET
OOB-mgmt:
type: tosca.nodes.nfv.VL
properties:
network_type: flat
vendor: openstack
cidr: 192.168.0.0/24
QCT-out:
type: tosca.nodes.nfv.VL
properties:
network_type: flat
vendor: openstack
cidr: 10.20.181.0/24
ISP-NET:
type: tosca.nodes.nfv.VL
properties:
network_type: something
vendor: openstack
cidr: 192.168.1.0/24
FW:
type: tosca.nodes.nfv.VL
properties:
network_type: something
vendor: openstack
cidr: 172.28.3.0/24
VAS:
type: tosca.nodes.nfv.VL
properties:
network_type: something
vendor: openstack
cidr: 172.28.1.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment