Skip to content
Snippets Groups Projects
Commit 8388279d authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

fix concatenate str + command

parent 9ba21c2c
No related branches found
No related tags found
No related merge requests found
......@@ -235,7 +235,8 @@ def run_ids_solo5_hvt(map_tap_inf_for_ids):
# Append node ID
command.append(f"--node-id={my_id}")
process = subprocess.Popen(['gnome-terminal', '--', 'bash', '-c', command])
command_str = " ".join(command)
process = subprocess.Popen(['gnome-terminal', '--', 'bash', '-c', command_str])
return process
......
......@@ -163,6 +163,7 @@ class IdsOpportunistic:
if_utils.create_bridge(new_bridge)
# Add ens$i and public$j to br$j, Add private$j to br0
if_utils.delete_interface_from_bridge(if_utils.BR_CENTER_NAME, inter_name)
if_utils.add_interface_to_bridge(new_bridge, inter_name)
if_utils.add_interface_to_bridge(new_bridge, public_if)
if_utils.add_interface_to_bridge(if_utils.BR_CENTER_NAME, private_if)
......@@ -224,7 +225,7 @@ class IdsOpportunistic:
if is_ids_deployed and not IdsOpportunistic.ids_process:
# Generate and store IDS ID to differentiate instances deployed overtime, currently we do not use it
new_ids_deploy_id = node_ID + "_" + str(time_decided)
new_ids_deploy_id = str(node_ID) + "_" + str(time_decided)
if IdsOpportunistic.ids_deploy_id == 0 or IdsOpportunistic.ids_deploy_id != new_ids_deploy_id:
IdsOpportunistic.ids_deploy_id = new_ids_deploy_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment