From 932faad48e1de1f9fac5dea47139f0e5b84128d1 Mon Sep 17 00:00:00 2001 From: Limmen Date: Thu, 11 Apr 2024 12:04:05 +0200 Subject: [PATCH] add logging --- .../src/csle_common/controllers/ovs_controller.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/simulation-system/libs/csle-common/src/csle_common/controllers/ovs_controller.py b/simulation-system/libs/csle-common/src/csle_common/controllers/ovs_controller.py index 7aef33792..a6c604556 100644 --- a/simulation-system/libs/csle-common/src/csle_common/controllers/ovs_controller.py +++ b/simulation-system/libs/csle-common/src/csle_common/controllers/ovs_controller.py @@ -87,12 +87,10 @@ def apply_ovs_config(emulation_env_config: EmulationEnvConfig, physical_server_i cmd = f"{constants.COMMANDS.SUDO} {constants.OVS.OVS_VSCTL} set bridge {bridge_name} " \ f"protocols={','.join(ovs_sw.openflow_protocols)}" logger.info(f"Running cmd:{cmd} on container: {ovs_sw.container_name}") - EmulationUtil.execute_ssh_cmd(cmd=cmd, conn=emulation_env_config.connections[ovs_sw.docker_gw_bridge_ip], - wait_for_completion=False) + EmulationUtil.execute_ssh_cmd(cmd=cmd, conn=emulation_env_config.connections[ovs_sw.docker_gw_bridge_ip]) logger.info(f"Command: {cmd} completed") cmd = f"{constants.COMMANDS.SUDO} {constants.OVS.OVS_VSCTL} set-controller {bridge_name} " \ f"{ovs_sw.controller_transport_protocol}:{ovs_sw.controller_ip}:{ovs_sw.controller_port}" logger.info(f"Running cmd:{cmd} on container: {ovs_sw.container_name}") - EmulationUtil.execute_ssh_cmd(cmd=cmd, conn=emulation_env_config.connections[ovs_sw.docker_gw_bridge_ip], - wait_for_completion=False) + EmulationUtil.execute_ssh_cmd(cmd=cmd, conn=emulation_env_config.connections[ovs_sw.docker_gw_bridge_ip]) logger.info(f"Command: {cmd} completed")