aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/deployment/manager.py
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-04-05 05:55:25 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-05 05:55:25 +0000
commit5731d9dc5838c6b7f499d4469a0034db5942d13b (patch)
tree65842a9dce0eca76a703c11c85ed3a8397bd6430 /opnfv/deployment/manager.py
parent7c2bfe5f9f0e4a9ddde36eac766b1846fa233cd6 (diff)
parent4862069b743b24bfc6478102a2a3872d9178838d (diff)
Merge "Compass Adapter to get deployment information"
Diffstat (limited to 'opnfv/deployment/manager.py')
-rw-r--r--opnfv/deployment/manager.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/opnfv/deployment/manager.py b/opnfv/deployment/manager.py
index df735f1..694df77 100644
--- a/opnfv/deployment/manager.py
+++ b/opnfv/deployment/manager.py
@@ -108,6 +108,7 @@ class NodeStatus():
STATUS_OFFLINE = 'offline'
STATUS_ERROR = 'error'
STATUS_UNUSED = 'unused'
+ STATUS_UNKNOWN = 'unknown'
class Node(object):
@@ -229,6 +230,12 @@ class Node(object):
'''
return Role.ODL in self.roles
+ def is_onos(self):
+ '''
+ Returns if the node is an ONOS
+ '''
+ return Role.ONOS in self.roles
+
def get_ovs_info(self):
'''
Returns the ovs version installed
@@ -383,4 +390,4 @@ class DeploymentHandler(object):
pod=os.getenv('NODE_NAME', 'Unknown'),
openstack_version=self.get_openstack_version(),
sdn_controller=self.get_sdn_version(),
- nodes=self.get_nodes())
+ nodes=self.nodes)