X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fdcemulator%2Fnet.py;fp=emuvim%2Fdcemulator%2Fnet.py;h=f3c7a682c660096cb812c3e9a84a23df47eaf83d;hb=eefea6c01c828a4c533a9fceea2945a8236766a5;hp=e0d524e3214487f96e8f8c077d56501c973f1438;hpb=d7cb443596657a5c0a54e9c8230e441ad36a0cca;p=osm%2Fvim-emu.git diff --git a/emuvim/dcemulator/net.py b/emuvim/dcemulator/net.py index e0d524e..f3c7a68 100755 --- a/emuvim/dcemulator/net.py +++ b/emuvim/dcemulator/net.py @@ -148,10 +148,10 @@ class DCNetwork(Dockernet): next_node = self.getNodeByName(next_hop) if next_hop == vnf_dst_name: - return 0 + return "path added between {0} and {1}".format(vnf_src_name, vnf_dst_name) elif not isinstance( next_node, OVSSwitch ): - logging.info("Next node: {0} is not a switch".format(next_hop1)) - return 0 + logging.info("Next node: {0} is not a switch".format(next_hop)) + return "Next node: {0} is not a switch".format(next_hop) switch_inport = self.DCNetwork_graph[current_hop][next_hop]['dst_port'] @@ -177,4 +177,4 @@ class DCNetwork(Dockernet): current_hop = next_hop - return 1 \ No newline at end of file + return "destination node: {0} not reached".format(vnf_dst_name) \ No newline at end of file