Revision bbf94cdb examples/cluster.py

View differences:

examples/cluster.py
255 255
        return super( RemoteMixin, self).addIntf( *args,
256 256
                        moveIntfFn=RemoteLink.moveIntf, **kwargs )
257 257

  
258
    def cleanup( self ):
259
        "Help python collect its garbage."
260
        # Intfs may end up in root NS
261
        for intfName in self.intfNames():
262
            if self.name in intfName:
263
                self.rcmd( 'ip link del ' + intfName )
264
        self.shell = None
258 265

  
259 266
class RemoteNode( RemoteMixin, Node ):
260 267
    "A node on a remote server"

Also available in: Unified diff