Revision f32a5468 mininet/net.py

View differences:

mininet/net.py
187 187
    def addController( self, controller ):
188 188
        """Add controller.
189 189
           controller: Controller class"""
190
        controller = self.controller( 'c0', self.inNamespace )
191
        if controller:  # allow controller-less setups
192
            self.controllers.append( controller )
193
            self.nameToNode[ 'c0' ] = controller
190
        controller_new = self.controller( 'c0' )
191
        if controller_new:  # allow controller-less setups
192
            self.controllers.append( controller_new )
193
            self.nameToNode[ 'c0' ] = controller_new
194 194

  
195 195
    # Control network support:
196 196
    #

Also available in: Unified diff