aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv
diff options
context:
space:
mode:
Diffstat (limited to 'opnfv')
-rw-r--r--opnfv/deployment/manager.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/opnfv/deployment/manager.py b/opnfv/deployment/manager.py
index 1dfbb09..7047a4d 100644
--- a/opnfv/deployment/manager.py
+++ b/opnfv/deployment/manager.py
@@ -359,6 +359,18 @@ class DeploymentHandler(object):
'''
return self.installer_node
+ def get_arch(self):
+ '''
+ Returns the architecture of the first compute node found
+ '''
+ arch = None
+ for node in self.nodes:
+ if node.is_compute():
+ arch = node.cpu_info.get('arch', None)
+ if arch:
+ break
+ return arch
+
def get_deployment_info(self):
'''
Returns an object of type Deployment