Skip to content
Snippets Groups Projects
Commit 78073e1b authored by Bob Lantz's avatar Bob Lantz
Browse files

Fixed to be compatible with modified Mininet() class.

parent d40b0a99
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment