summaryrefslogtreecommitdiffstats
path: root/docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-06-12 22:45:41 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2016-06-13 10:04:56 +0800
commita3f0c279eadad97fe8f924cf3d539df70d6ee6b4 (patch)
treee7d371c147a91fe94ff9cf3188510cd54bb3f4cf /docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml
parent37c637988622dde3425390fb861800ffdaf2b6cb (diff)
Create test case about nfv tosca
As a developer; I want to known the availability of current nfv tosca definitions about node types, capabilities types and relationship types. So i create some test cases to validate it. JIRA: PARSER-34 Change-Id: Id57e38c066eea1d2090a816f5129aa95de464d32 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml')
-rw-r--r--docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml46
1 files changed, 22 insertions, 24 deletions
diff --git a/docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml b/docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml
index e22a1c8..76fd002 100644
--- a/docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml
+++ b/docs/parser_docs/tosca2heat/examples/Simple_RNC.yaml
@@ -1,4 +1,3 @@
-#
## 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
@@ -11,7 +10,6 @@
## License for the specific language governing permissions and limitations
## under the License.
-# Required TOSCA Definitions version string
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
@@ -22,12 +20,12 @@ metadata:
# Optional description of the definitions inside the file.
description: >
TOSCA simple profile for RNC
- 1, Compute Node MM, CM, DM, LB...
+ 1. Compute Node MM, CM, DM, LB...
1.1 MM: MaintainModule;
1.2 CM: Control Module;
1.3 DM: Data Module;
1.4 LB: LineCard Module
- 2, Network Node VL and CP
+ 2. Network Node VL and CP
imports:
- Simple_RNC_definition.yaml
@@ -79,7 +77,7 @@ topology_template:
substitution_mappings:
node_type: rnc.nodes.VNF
properties:
- vnfmtype: TDS-CDMA
+ vnfmtype: UMTS
requirements:
virtualLink_VNFM: [ MM_Port_CTRL, virtualLink ]
virtualLink_EMS: [ MM_Port_EMS, virtualLink ]
@@ -305,7 +303,7 @@ topology_template:
order: 0
is_default: true
requirements:
- - virtualbinding: MM_Active
+ - virtualBinding: MM_Active
- virtualLink: EMS_Net
MM_Port_CTRL:
@@ -314,7 +312,7 @@ topology_template:
order: 1
is_default: false
requirements:
- - virtualbinding: MM_Active
+ - virtualBinding: MM_Active
- virtualLink: CTRL_Net
MM_Port_EXTERMEDIA:
@@ -323,7 +321,7 @@ topology_template:
order: 2
is_default: false
requirements:
- - virtualbinding: MM_Active
+ - virtualBinding: MM_Active
- virtualLink: EXTERMEDIA_Net
CM_Port_CTRL:
@@ -332,7 +330,7 @@ topology_template:
order: 0
is_default: true
requirements:
- - virtualbinding: CM_Active
+ - virtualBinding: CM_Active
- virtualLink: CTRL_Net
CM_Port_INTERMEDIA:
@@ -341,7 +339,7 @@ topology_template:
order: 1
is_default: false
requirements:
- - virtualbinding: CM_Active
+ - virtualBinding: CM_Active
- virtualLink: INTERMEDIA_Net
DM_Port_CTRL:
@@ -350,7 +348,7 @@ topology_template:
order: 0
is_default: true
requirements:
- - virtualbinding: DM
+ - virtualBinding: DM
- virtualLink: CTRL_Net
DM_Port_INTERMEDIA:
@@ -359,7 +357,7 @@ topology_template:
order: 1
is_default: false
requirements:
- - virtualbinding: DM
+ - virtualBinding: DM
- virtualLink: INTERMEDIA_Net
LB_Port_CTRL:
@@ -368,7 +366,7 @@ topology_template:
order: 0
is_default: true
requirements:
- - virtualbinding: LB
+ - virtualBinding: LB
- virtualLink: CTRL_Net
LB_Port_INTERMEDIA:
@@ -377,7 +375,7 @@ topology_template:
order: 1
is_default: false
requirements:
- - virtualbinding: LB
+ - virtualBinding: LB
- virtualLink: INTERMEDIA_Net
LB_Port_EXTERMEDIA:
@@ -386,7 +384,7 @@ topology_template:
order: 2
is_default: false
requirements:
- - virtualbinding: LB
+ - virtualBinding: LB
- virtualLink: EXTERMEDIA_Net
# definition of the relationship templates of the topology
@@ -400,19 +398,19 @@ topology_template:
outputs:
private_ip_of_MM:
description: The private IP address of the MM.
- value: { get_attribute: [ MM_Active, ip_address ] }
+ value: { get_attribute: [ MM_Active, private_address ] }
private_ip_of_CM:
description: The private IP address of the CM.
- value: { get_attribute: [ CM_Active, ip_address ] }
+ value: { get_attribute: [ CM_Active, private_address ] }
private_ip_of_DM:
description: The private IP address of the DM.
- value: { get_attribute: [ DM, ip_address ] }
+ value: { get_attribute: [ DM, private_address ] }
private_ip_of_LB:
description: The private IP address of the LB.
- value: { get_attribute: [ LB, ip_address ] }
+ value: { get_attribute: [ LB, private_address ] }
# definition of logical groups of node templates within the topology
# To be continue about this section
@@ -423,7 +421,7 @@ topology_template:
Logical component grouping for anti affinity placement,
MM_Acitve, MM_Passive, CM_Acitve, CM_Passive, LB must host
on different host to reduce the impact to each other.
- members: [ MM_Acitve, MM_Passive, CM_Acitve, CM_Passive, LB ]
+ members: [ MM_Active, MM_Passive, CM_Active, CM_Passive, LB ]
policies:
type: tosca.policy.placement.Antilocate
@@ -432,19 +430,19 @@ topology_template:
description: >
Logical component grouping for affinity placement,
CM and DM will be host on the same host to get high performence
- members: [ CM, DM ]
+ members: [ CM_Active, DM ]
policies:
type: tosca.policy.placement.Antilocate
policies:
- AnitAffinityPolicy:
type: tosca.policies.Placement.Antilocate
- description: Apply anti-locate placement policy to group
+ description: Apply anti-locate placement policy to group
targets: [ AnitAffinityServerGroup ]
-
+
- AffinityPolicy:
type: tosca.policies.Placement.Colocate
- description: Apply anti-locate placement policy to group
+ description: Apply anti-locate placement policy to group
targets: [ AffinityServerGroup ]
# ServerGroupScaling_DM: # added future