Add new attributes to Compute node
Add attributes to the Compute node. Change-Id: If10c8866c9cf682c6ae8258604a82d9cef2a1cca Closes-Bug: 1538725
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user