Skip to content

Commit

Permalink
Fixed to be compatible with modified Mininet() class.
Browse files Browse the repository at this point in the history
  • Loading branch information
lantz committed Feb 27, 2010
1 parent d40b0a9 commit 78073e1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mininet/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,10 @@ class CLI( Cmd ):
def __init__( self, mininet ):
self.mn = mininet
self.nodemap = {} # map names to Node objects
for node in self.mn.nodes.values():
self.nodelist = self.mn.switches + self.mn.hosts + self.mn.controllers
for node in self.nodelist:
self.nodemap[ node.name ] = node
for cname, cnode in self.mn.controllers.iteritems():
self.nodemap[ cname ] = cnode
self.nodelist = self.nodemap.values()
Cmd.__init__( self )

warn( '*** Starting CLI:\n' )
self.cmdloop()

Expand Down

0 comments on commit 78073e1

Please sign in to comment.