X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fdcemulator%2Fnet.py;h=1f30ba7abfcce8422fcd8189622944049d53edcd;hb=04e5f9823454ac2cd04eff7f09a1cb433521a408;hp=005e272c64ad88942d7a7e946eefab32bc6e7711;hpb=72f09885db3935e77901c3dee132cb176b927c7b;p=osm%2Fvim-emu.git diff --git a/src/emuvim/dcemulator/net.py b/src/emuvim/dcemulator/net.py index 005e272..1f30ba7 100755 --- a/src/emuvim/dcemulator/net.py +++ b/src/emuvim/dcemulator/net.py @@ -462,7 +462,7 @@ class DCNetwork(Containernet): return "No path could be found between {0} and {1}".format( vnf_src_name, vnf_dst_name) - LOG.info("Path between {0} and {1}: {2}".format( + LOG.debug("Creating path between {0} and {1}: {2}".format( vnf_src_name, vnf_dst_name, path)) current_hop = src_sw @@ -484,7 +484,7 @@ class DCNetwork(Containernet): if next_hop == vnf_dst_name: switch_outport_nr = dst_sw_outport_nr - LOG.info("end node reached: {0}".format(vnf_dst_name)) + LOG.debug("end node reached: {0}".format(vnf_dst_name)) elif not isinstance(next_node, OVSSwitch): LOG.info("Next node: {0} is not a switch".format(next_hop)) return "Next node: {0} is not a switch".format(next_hop) @@ -666,7 +666,7 @@ class DCNetwork(Containernet): return "No path could be found between {0} and {1}".format( vnf_src_name, vnf_dst_name) - LOG.info("Path between {0} and {1}: {2}".format( + LOG.debug("Creating path between {0} and {1}: {2}".format( vnf_src_name, vnf_dst_name, path)) current_hop = src_sw @@ -706,7 +706,7 @@ class DCNetwork(Containernet): if next_hop == vnf_dst_name: switch_outport_nr = dst_sw_outport_nr - LOG.info("end node reached: {0}".format(vnf_dst_name)) + LOG.debug("end node reached: {0}".format(vnf_dst_name)) elif not isinstance(next_node, OVSSwitch): LOG.info("Next node: {0} is not a switch".format(next_hop)) return "Next node: {0} is not a switch".format(next_hop) @@ -746,6 +746,8 @@ class DCNetwork(Containernet): 'match_input': kwargs.get('match') } flow_options_str = json.dumps(flow_options, indent=1) + LOG.info("Installed flow rule: ({}:{}) -> ({}:{}) with options: {}" + .format(vnf_src_name, vnf_src_interface, vnf_dst_name, vnf_dst_interface, flow_options)) return "success: {2} between {0} and {1} with options: {3}".format( vnf_src_name, vnf_dst_name, cmd, flow_options_str)