Add new attributes to Compute node

Add attributes to the Compute node.

Change-Id: If10c8866c9cf682c6ae8258604a82d9cef2a1cca
Closes-Bug: 1538725
This commit is contained in:
Sahdev Zala
2016-02-02 11:36:16 -08:00
parent 826bac5a7f
commit 18e677771b
2 changed files with 9 additions and 1 deletions

View File

@@ -52,6 +52,14 @@ tosca.nodes.Compute:
type: string
public_address:
type: string
networks:
type: map
entry_schema:
type: tosca.datatypes.network.NetworkInfo
ports:
type: map
entry_schema:
type: tosca.datatypes.network.PortInfo
capabilities:
host:
type: tosca.capabilities.Container

View File

@@ -154,7 +154,7 @@ class ToscaDefTest(TestCase):
def test_attributes_def(self):
self.assertEqual(
['private_address', 'public_address'],
['networks', 'ports', 'private_address', 'public_address'],
sorted(compute_type.get_attributes_def().keys()))
def test_requirements(self):