acrn-config: remove the same parameters and functions from scenario_cfg_lib

Scenario config should relay on library/common.py and scenario_cfg_lib,
then remove the duplicate parameters and functions.

Tracked-On: #3854
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
Acked-by: Terry Zou <terry.zou@intel.com>
This commit is contained in:
Wei Liu
2020-03-23 10:39:18 +08:00
committed by wenlingz
parent ed8ac484ad
commit ba3c531e50
7 changed files with 81 additions and 274 deletions

View File

@@ -267,7 +267,6 @@ def get_vm_num(config_file):
if item.tag == "vm":
vm_count += 1
VM_COUNT = vm_count
return vm_count
# TODO: This will be abandonment in future
@@ -382,7 +381,7 @@ def get_sub_value(tmp, tag_str, vm_id):
tmp.tag[vm_id] = tmp.multi.vir_network
def get_leaf_tag_map(config_file, branch_tag, tag_str):
def get_leaf_tag_map(config_file, branch_tag, tag_str=''):
"""
This is get tag value by tag_str from config file
:param config_file: it is a file what contains information for script to read from