The neutron_fwaas.services.firewall.fwaas_plugin Module

class neutron_fwaas.services.firewall.fwaas_plugin.FirewallAgentApi(topic, host)

Bases: object

Plugin side of plugin to agent RPC API.

create_firewall(context, firewall)
delete_firewall(context, firewall)
update_firewall(context, firewall)
class neutron_fwaas.services.firewall.fwaas_plugin.FirewallCallbacks(plugin)

Bases: object

firewall_deleted(context, firewall_id, **kwargs)

Agent uses this to indicate firewall is deleted.

get_firewalls_for_tenant(context, **kwargs)

Agent uses this to get all firewalls and rules for a tenant.

get_firewalls_for_tenant_without_rules(context, **kwargs)

Agent uses this to get all firewalls for a tenant.

get_tenants_with_firewalls(context, **kwargs)

Agent uses this to get all tenants that have firewalls.

set_firewall_status(context, firewall_id, status, **kwargs)

Agent uses this to set a firewall’s status.

target = <Target version=1.0>
class neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin

Bases: neutron_fwaas.db.firewall.firewall_db.Firewall_db_mixin, neutron_fwaas.db.firewall.firewall_router_insertion_db.FirewallRouterInsertionDbMixin

Implementation of the Neutron Firewall Service Plugin.

This class manages the workflow of FWaaS request/response. Most DB related works are implemented in class firewall_db.Firewall_db_mixin.

create_firewall(context, firewall)
delete_db_firewall_object(context, id)
delete_firewall(context, id)
get_firewall(context, id, fields=None)
get_firewalls(context, filters=None, fields=None)
insert_rule(context, id, rule_info)
path_prefix = '/fw'
remove_rule(context, id, rule_info)
start_rpc_listeners()
supported_extension_aliases = ['fwaas', 'fwaasrouterinsertion']
update_firewall(context, id, firewall)
update_firewall_policy(context, id, firewall_policy)
update_firewall_rule(context, id, firewall_rule)