neutron_fwaas.services.firewall.service_drivers.agents.agents module¶
- class neutron_fwaas.services.firewall.service_drivers.agents.agents.FirewallAgentApi(topic, host)¶
Bases:
object
Plugin side of plugin to agent RPC API
- create_firewall_group(context, firewall_group)¶
- delete_firewall_group(context, firewall_group)¶
- update_firewall_group(context, firewall_group)¶
- class neutron_fwaas.services.firewall.service_drivers.agents.agents.FirewallAgentCallbacks(firewall_db)¶
Bases:
object
- firewall_group_deleted(context, fwg_id, **kwargs)¶
Agent uses this to indicate firewall is deleted.
- get_firewall_group_for_port(context, **kwargs)¶
Get firewall_group is associated with a port.
- get_firewall_groups_for_project(context, **kwargs)¶
Gets all firewall_groups and rules on a project.
- get_projects_with_firewall_groups(context, **kwargs)¶
Get all projects that have firewall_groups.
- set_firewall_group_status(context, fwg_id, status, **kwargs)¶
Agent uses this to set a firewall_group’s status.
- target = <Target version=1.0>¶
- class neutron_fwaas.services.firewall.service_drivers.agents.agents.FirewallAgentDriver(service_plugin)¶
Bases:
FirewallDriverDB
,FirewallDriverRPCMixin
Firewall driver to implement agent messages and callback methods
Implement RPC Firewall v2 API and callback methods for agents based on Neutron DB model.
- create_firewall_group_postcommit(context, firewall_group)¶
- create_firewall_group_precommit(context, firewall_group)¶
- insert_rule_postcommit(context, policy_id, rule_info)¶
- is_supported_l2_port(port)¶
- is_supported_l3_port(port)¶
- remove_rule_postcommit(context, policy_id, rule_info)¶
- start_rpc_listener()¶
- update_firewall_group_postcommit(context, old_firewall_group, new_firewall_group)¶
- update_firewall_group_precommit(context, old_firewall_group, new_firewall_group)¶
- update_firewall_policy_postcommit(context, old_firewall_policy, new_firewall_group)¶
- update_firewall_rule_postcommit(context, old_firewall_rule, new_firewall_rule)¶