Add attributes of address to tosca.nodes.nfv.CP address 61/14161/1
authorshangxdy <shang.xiaodong@zte.com.cn>
Sun, 15 May 2016 18:33:58 +0000 (14:33 -0400)
committershangxdy <shang.xiaodong@zte.com.cn>
Sun, 15 May 2016 18:33:58 +0000 (14:33 -0400)
According to the openstack comments, it's necessary to add the attribute
of address, which was deleted because the IP_address was duplication to
CP's parent's attributes.
The related modifications are refer to:
1. https://gerrit.opnfv.org/gerrit/#/c/12567.
2. https://bugs.launchpad.net/tosca-parser/+bug/1574715.

JIRA: PARSER-36

Change-Id: I6bf894cbba440013175df478cce00fa08906dc19
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tosca2heat/tosca-parser/toscaparser/extensions/nfv/TOSCA_nfv_definition_1_0.yaml

index 69cd38d..660cdc0 100644 (file)
@@ -72,6 +72,9 @@ tosca.nodes.nfv.CP:
         capability: tosca.capabilities.nfv.VirtualBindable
         relationship: tosca.relationships.nfv.VirtualBindsTo
         node: tosca.nodes.nfv.VDU
+  attributes:
+    address:
+      type: string
 
 tosca.nodes.nfv.VL:
   derived_from: tosca.nodes.network.Network