Skip to content

Commit

Permalink
fixed showing info error.
Browse files Browse the repository at this point in the history
  • Loading branch information
muzixing committed Jul 18, 2016
1 parent e8bd0c0 commit 9d36347
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ryu/app/network_awareness/network_awareness.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def show_topology(self):
if self.pre_graph != self.graph and setting.TOSHOW:
print "---------------------Topo Link---------------------"
print '%10s' % ("switch"),
for i in xrange(1, switch_num + 1):
for i in self.graph.nodes():
print '%10d' % i,
print ""
for i in self.graph.nodes():
Expand All @@ -252,12 +252,12 @@ def show_topology(self):
if self.pre_link_to_port != self.link_to_port and setting.TOSHOW:
print "---------------------Link Port---------------------"
print '%10s' % ("switch"),
for i in xrange(1, switch_num + 1):
for i in self.graph.nodes():
print '%10d' % i,
print ""
for i in xrange(1, switch_num + 1):
for i in self.graph.nodes():
print '%10d' % i,
for j in xrange(1, switch_num + 1):
for j in self.graph.nodes():
if (i, j) in self.link_to_port.keys():
print '%10s' % str(self.link_to_port[(i, j)]),
else:
Expand Down

0 comments on commit 9d36347

Please sign in to comment.