コード例 #1
0
 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 )
コード例 #2
0
 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)
コード例 #3
0
ファイル: topo.py プロジェクト: 0xdyu/NetEx
 def start( self, controllers ):
     return UserSwitch.start( self, [ca])
コード例 #4
0
ファイル: mcast.py プロジェクト: StanHsu0522/vrouter_turorial
 def start(self, controllers):
     return UserSwitch.start(self, [cmap[self.name]])