Skip to content

Instantly share code, notes, and snippets.

@aneeshkp
Last active October 13, 2017 13:21
Show Gist options
  • Save aneeshkp/fa481db04d90b68437e5175a7271cec6 to your computer and use it in GitHub Desktop.
Save aneeshkp/fa481db04d90b68437e5175a7271cec6 to your computer and use it in GitHub Desktop.
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: VCPE-Demo
# NOT USED
#imports:
# - tacker_nfv_defs.yaml
# - tacker_defs.yaml
metadata:
template_name: vcpe-demo-template
ID: vcpe vyos
vendor: Red Hat Inc
version: 1
node_types:
tosca.nodes.nfv.VNF.VYOS:
derived_from: tosca.nodes.nfv.VNF
capabilities:
forwarder1:
type: tosca.capabilities.nfv.Forwarder
forwarder2:
type: tosca.capabilities.nfv.Forwarder
forwarder3:
type: tosca.capabilities.nfv.Forwarder
forwarder4:
type: tosca.capabilities.nfv.Forwarder
topology_template:
substitution_mappings:
node_type: tosca.nodes.nfv.VNF.VYOS
requirements:
virtualLink1: [CP1, virtualLink]
virtualLink2: [CP2, virtualLink]
virtualLink3: [CP3, virtualLink]
virtualLink4: [CP4, virtualLink]
virtualLinkMgmt: [CP5, virtualLink]
capabilities:
forwarder1: [CP1, forwarder]
forwarder2: [CP2, forwarder]
forwarder3: [CP3, forwarder]
forwarder4: [CP4, forwarder]
inputs:
image:
type: string
default: vyos-1.1.7-i586-image-1.4 # Pre-existing image in glance
node_templates:
VDU1:
type: tosca.nodes.nfv.VDU.Tacker
capabilities:
nfv_compute:
properties:
disk_size: 20 GB
mem_size: 2048 MB
num_cpus: 1
properties:
key_name: vcpe_os_key
service_type: router
image: { get_input: image }
availability_zone: nova
mgmt_driver: noop
CP1:
type: tosca.nodes.nfv.CP.Tacker
properties:
anti_spoofing_protection: true
requirements:
- virtualBinding:
node: VDU1
CP2:
type: tosca.nodes.nfv.CP.Tacker
properties:
anti_spoofing_protection: true
requirements:
- virtualBinding:
node: VDU1
CP3:
type: tosca.nodes.nfv.CP.Tacker
properties:
anti_spoofing_protection: true
requirements:
- virtualBinding:
node: VDU1
CP4:
type: tosca.nodes.nfv.CP.Tacker
properties:
anti_spoofing_protection: true
requirements:
- virtualBinding:
node: VDU1
CP5:
type: tosca.nodes.nfv.CP.Tacker
properties:
anti_spoofing_protection: true
requirements:
- virtualBinding:
node: VDU1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment