mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user