> 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/extensions/agentpy.md).

# agent.py

主要定义了两个类：Agent和AgentPluginBase。

前者提供对agent管理扩展；后者提供对agent进行操作的rest API，包括对agent的CRUD操作，在agent\_db.py中被AgentDbMixin类继承。
