def start( self, controllers ): # make sure controllers contains only a ControllerCluster assert len( controllers ) == 1 ccluster = controllers[ 0 ] assert type( ccluster ) == ControllerCluster controller_list = ccluster.clist( self.name ) # TODO: manage order of controllers to control mastership UserSwitch.start( self, controllers=controller_list )
def start(self, controllers): # Call superclass constructor UserSwitch.start(self, controllers) # Set Switch IP address if self.switchIP is not None: if not self.inNamespace: self.cmd('ifconfig', self, self.switchIP) else: self.cmd('ifconfig lo', self.switchIP)
def start( self, controllers ): return UserSwitch.start( self, [ca])
def start(self, controllers): return UserSwitch.start(self, [cmap[self.name]])