Skip to content

Latest commit

 

History

History
40 lines (16 loc) · 667 Bytes

NeutronOvsAgent之RPC.md

File metadata and controls

40 lines (16 loc) · 667 Bytes

Neutron OvsAgent 之 RPC

SecurityGroupAgentRpcCallbackMixin

neutron/agent/securitygroups_rpc.py

class DVRAgentRpcCallbackMixin(object)

neutron/api/rpc/handlers/dvr_rpc.py

class DVRAgentRpcCallbackMixin(object):
    """Agent-side RPC (implementation) for plugin-to-agent interaction."""

    def dvr_mac_address_update(self, context, **kwargs):
        """Callback for dvr_mac_addresses update.

        :param dvr_macs: list of updated dvr_macs
        """
        dvr_macs = kwargs.get('dvr_macs', [])
        LOG.debug("dvr_macs updated on remote: %s", dvr_macs)
        self.dvr_agent.dvr_mac_address_update(dvr_macs)