def __init__(self, server): super(NetworkNativeDriver, self).__init__(server) self.app_routine = RoutineContainer(self.scheduler) self.app_routine.main = self._main self.routines.append(self.app_routine) self.createAPI( publicapi(self.createphysicalnetworks, criteria=lambda networks, type: type == 'native'), publicapi(self.updatephysicalnetworks, criteria=lambda type, networks: type == 'native'), publicapi(self.deletephysicalnetworks, criteria=lambda type, networks: type == 'native'), publicapi(self.createphysicalports, criteria=lambda type, ports: type == 'native'), publicapi( self.updatephysicalports, criteria=lambda phynettype, ports: phynettype == 'native'), publicapi( self.deletephysicalports, criteria=lambda phynettype, ports: phynettype == 'native'), publicapi( self.createlogicalnetworks, criteria=lambda phynettype, networks: phynettype == 'native'), publicapi( self.updatelogicalnetworks, criteria=lambda phynettype, networks: phynettype == 'native'), publicapi( self.deletelogicalnetworks, criteria=lambda phynettype, networks: phynettype == "native"), #used in IOprocessing module publicapi(self.createioflowparts, criteria=lambda connection, logicalnetwork, physicalport, logicalnetworkid, physicalportid: logicalnetwork. physicalnetwork.type == "native"))
def __init__(self,server): super(NetworkVlanDriver,self).__init__(server) self.app_routine = RoutineContainer(self.scheduler) self.app_routine.main = self._main self.routines.append(self.app_routine) self.createAPI( publicapi(self.createphysicalnetworks, criteria=lambda networks,type:type == 'vlan'), publicapi(self.updatephysicalnetworks, criteria=lambda type,networks:type == 'vlan'), publicapi(self.deletephysicalnetworks, criteria=lambda type,networks:type == 'vlan'), publicapi(self.createphysicalports, criteria=lambda type,ports:type == 'vlan'), publicapi(self.updatephysicalports, criteria=lambda phynettype, ports:phynettype == 'vlan'), publicapi(self.deletephysicalports, criteria=lambda phynettype, ports:phynettype == 'vlan'), publicapi(self.createlogicalnetworks, criteria=lambda phynettype, networks:phynettype == 'vlan'), publicapi(self.updatelogicalnetworks, criteria=lambda phynettype, networks:phynettype == 'vlan'), publicapi(self.deletelogicalnetworks, criteria=lambda phynettype,networks:phynettype == "vlan"), #used in IOprocessing module publicapi(self.createioflowparts, criteria=lambda connection,logicalnetwork, physicalport,logicalnetworkid,physicalportid: logicalnetwork.physicalnetwork.type == "vlan") )
def __init__(self,server): super(NetworkVxlanDriver,self).__init__(server) self.app_routine = RoutineContainer(self.scheduler) self.app_routine.main = self._main self.routines.append(self.app_routine) self.createAPI( publicapi(self.createphysicalnetworks, criteria=lambda networks,type:type == 'vxlan'), publicapi(self.updatephysicalnetworks, criteria=lambda type,networks:type == 'vxlan'), publicapi(self.deletephysicalnetworks, criteria=lambda type,networks:type == 'vxlan'), publicapi(self.createphysicalports, criteria=lambda type,ports:type == 'vxlan'), publicapi(self.updatephysicalports, criteria=lambda phynettype, ports:phynettype == 'vxlan'), publicapi(self.deletephysicalports, criteria=lambda phynettype, ports:phynettype == 'vxlan'), publicapi(self.createlogicalnetworks, criteria=lambda phynettype, networks:phynettype == 'vxlan'), publicapi(self.updatelogicalnetworks, criteria=lambda phynettype, networks:phynettype == 'vxlan'), publicapi(self.deletelogicalnetworks, criteria=lambda phynettype,networks:phynettype == "vxlan") )
def __init__(self, server): super(NetworkVxlanDriver, self).__init__(server) self.app_routine = RoutineContainer(self.scheduler) self.app_routine.main = self._main self.routines.append(self.app_routine) self.createAPI( publicapi(self.createphysicalnetworks, criteria=lambda networks, type: type == 'vxlan'), publicapi(self.updatephysicalnetworks, criteria=lambda type, networks: type == 'vxlan'), publicapi(self.deletephysicalnetworks, criteria=lambda type, networks: type == 'vxlan'), publicapi(self.createphysicalports, criteria=lambda type, ports: type == 'vxlan'), publicapi( self.updatephysicalports, criteria=lambda phynettype, ports: phynettype == 'vxlan'), publicapi( self.deletephysicalports, criteria=lambda phynettype, ports: phynettype == 'vxlan'), publicapi( self.createlogicalnetworks, criteria=lambda phynettype, networks: phynettype == 'vxlan'), publicapi( self.updatelogicalnetworks, criteria=lambda phynettype, networks: phynettype == 'vxlan'), publicapi( self.deletelogicalnetworks, criteria=lambda phynettype, networks: phynettype == "vxlan"))
def __init__(self,server): super(VXLANVtep,self).__init__(server) self.app_routine = RoutineContainer(self.scheduler) self.app_routine.main = self._main self.routines.append(self.app_routine) self.conns = {} self.vxlan_vlan_map_info = {} self.createAPI(publicapi(self.createioflowparts, self.app_routine, lambda connection,logicalnetwork,**kwargs: _is_vxlan(logicalnetwork)), api(self.get_vxlan_bind_info,self.app_routine))