Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Apr 11, 2024
1 parent 68185db commit 932faad
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 932faad

Please sign in to comment.