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
|
type: string
|
||||||
public_address:
|
public_address:
|
||||||
type: string
|
type: string
|
||||||
|
networks:
|
||||||
|
type: map
|
||||||
|
entry_schema:
|
||||||
|
type: tosca.datatypes.network.NetworkInfo
|
||||||
|
ports:
|
||||||
|
type: map
|
||||||
|
entry_schema:
|
||||||
|
type: tosca.datatypes.network.PortInfo
|
||||||
capabilities:
|
capabilities:
|
||||||
host:
|
host:
|
||||||
type: tosca.capabilities.Container
|
type: tosca.capabilities.Container
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class ToscaDefTest(TestCase):
|
|||||||
|
|
||||||
def test_attributes_def(self):
|
def test_attributes_def(self):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
['private_address', 'public_address'],
|
['networks', 'ports', 'private_address', 'public_address'],
|
||||||
sorted(compute_type.get_attributes_def().keys()))
|
sorted(compute_type.get_attributes_def().keys()))
|
||||||
|
|
||||||
def test_requirements(self):
|
def test_requirements(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user