81 lines
1.7 KiB
YAML
81 lines
1.7 KiB
YAML
tosca_definitions_version: tosca_simple_profile_for_mec_1_0_0
|
|
|
|
description: Demo example
|
|
|
|
node_types:
|
|
tosca.nodes.mec.MEA2:
|
|
requirements:
|
|
- virtualLink1:
|
|
type: tosca.nodes.mec.VL
|
|
required: true
|
|
|
|
topology_template:
|
|
substitution_mappings:
|
|
node_type: tosca.nodes.mec.MEA2
|
|
node_templates:
|
|
VDU1:
|
|
type: tosca.nodes.mec.VDU.Apmec
|
|
properties:
|
|
image: cirros-0.3.5-x86_64-disk
|
|
flavor: m1.tiny
|
|
availability_zone: nova
|
|
mgmt_driver: noop
|
|
config: |
|
|
param0: key1
|
|
param1: key2
|
|
|
|
CP41:
|
|
type: tosca.nodes.mec.CP.Apmec
|
|
properties:
|
|
management: true
|
|
anti_spoofing_protection: false
|
|
requirements:
|
|
- virtualLink:
|
|
node: VL1
|
|
- virtualBinding:
|
|
node: VDU1
|
|
|
|
VDU2:
|
|
type: tosca.nodes.mec.VDU.Apmec
|
|
properties:
|
|
image: cirros-0.3.5-x86_64-disk
|
|
flavor: m1.tiny
|
|
availability_zone: nova
|
|
mgmt_driver: noop
|
|
config: |
|
|
param0: key1
|
|
param1: key2
|
|
|
|
CP42:
|
|
type: tosca.nodes.mec.CP.Apmec
|
|
requirements:
|
|
- virtualLink:
|
|
node: VL1
|
|
- virtualBinding:
|
|
node: VDU2
|
|
|
|
VL1:
|
|
type: tosca.nodes.mec.VL
|
|
properties:
|
|
network_name: net0
|
|
vendor: Apmec
|
|
|
|
FIP41:
|
|
type: tosca.nodes.network.FloatingIP
|
|
properties:
|
|
floating_network: external
|
|
floating_ip_address: 203.203.203.120
|
|
requirements:
|
|
- link:
|
|
node: CP41
|
|
|
|
FIP42:
|
|
type: tosca.nodes.network.FloatingIP
|
|
properties:
|
|
floating_network: external
|
|
floating_ip_address: 203.203.203.121
|
|
requirements:
|
|
- link:
|
|
node: CP42
|
|
|