def __init__(self): """Initialize an RPC backend for the Neutron Server.""" self._skeleton = server.TrunkSkeleton() self._stub = server.TrunkStub() LOG.debug("RPC backend initialized for trunk plugin") for event_type in (events.AFTER_CREATE, events.AFTER_DELETE): registry.subscribe(self.process_event, resources.TRUNK, event_type) registry.subscribe(self.process_event, resources.SUBPORTS, event_type)
def __init__(self): """Initialize an RPC backend for the Neutron Server.""" self._skeleton = server.TrunkSkeleton() self._stub = server.TrunkStub() # Set up listeners to trunk events: they dispatch RPC messages # to agents as needed. These are designed to work with any # agent-based driver that may integrate with the trunk service # plugin, e.g. linux bridge or ovs. for event in (events.AFTER_CREATE, events.AFTER_DELETE): registry.subscribe(self.process_event, trunk_consts.TRUNK, event) registry.subscribe(self.process_event, trunk_consts.SUBPORTS, event) LOG.debug("RPC backend initialized for trunk plugin")
def __init__(self): """Initialize an RPC backend for the Neutron Server.""" self._skeleton = server.TrunkSkeleton() self._stub = server.TrunkStub() LOG.debug("RPC backend initialized for trunk plugin")
def setUp(self): super(TrunkStubTest, self).setUp() self.test_obj = server.TrunkStub()