summaryrefslogtreecommitdiffstats
path: root/deploy/config_parse.py
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-08-06 14:58:21 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-08-06 14:58:21 +0800
commit2fff43c7d76c7cbd1297ac1fedd6f08270c97391 (patch)
tree24e08d1a1acc3e822e6e28226fc60354a40ae69c /deploy/config_parse.py
parentb2e6652fe13ee557e0d7a107e3bb426a9214a102 (diff)
Get VIRT_NUMBER from DHA file
JIRA: COMPASS-611 Change-Id: I498ea9517ff4f29c0369b8339b5e625c4131bd00 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/config_parse.py')
-rw-r--r--deploy/config_parse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/config_parse.py b/deploy/config_parse.py
index 3ee0d864..9cdf1acb 100644
--- a/deploy/config_parse.py
+++ b/deploy/config_parse.py
@@ -127,6 +127,9 @@ def export_dha_file(dha, dha_file, ofile):
if len(value) > 0:
env.update({'HOST_MACS': value})
+ if dha.get('TYPE', "virtual") == "virtual":
+ env.update({'VIRT_NUMBER': len(dha['hosts'])})
+
export_env_dict(env, ofile)