> For the complete documentation index, see [llms.txt](https://yeasy.gitbook.io/openstack_code_neutron/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yeasy.gitbook.io/openstack_code_neutron/neutron/services/firewall/agents.md).

# agents

firewall\_agent\_api.py中定义了FWaaSPluginApiMixin类和FWaaSAgentRpcCallbackMixin类。

前者继承自rpc.RpcProxy，是agent往plugin发出rpc消息时候，为agent一端使用的方法。包括set\_firewall\_status()方法和firewall\_deleted()方法。

后者为agent的实现提供mixin，分别声明了create\_firewall、update\_firewall、delete\_firewall三个接口，这三个接口用于处理plugin发出的对应rpc调用请求。
