The neutron_fwaas.db.firewall.firewall_db Module

class neutron_fwaas.db.firewall.firewall_db.Firewall(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, neutron_lib.db.model_base.HasId, neutron_lib.db.model_base.HasProject

Represents a Firewall resource.

admin_state_up
description
firewall_policy_id
id
name
project_id
shared
status
tenant_id
class neutron_fwaas.db.firewall.firewall_db.FirewallPolicy(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, neutron_lib.db.model_base.HasId, neutron_lib.db.model_base.HasProject

Represents a Firewall Policy resource.

audited
description
firewall_rules
firewalls
id
name
project_id
shared
tenant_id
class neutron_fwaas.db.firewall.firewall_db.FirewallRule(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, neutron_lib.db.model_base.HasId, neutron_lib.db.model_base.HasProject

Represents a Firewall rule.

action
description
destination_ip_address
destination_port_range_max
destination_port_range_min
enabled
firewall_policy_id
id
ip_version
name
position
project_id
protocol
shared
source_ip_address
source_port_range_max
source_port_range_min
tenant_id
class neutron_fwaas.db.firewall.firewall_db.Firewall_db_mixin

Bases: neutron_fwaas.extensions.firewall.FirewallPluginBase, neutron.db.common_db_mixin.CommonDbMixin

Mixin class for Firewall DB implementation.

create_firewall(context, firewall, status=None)
create_firewall_policy(context, firewall_policy)
create_firewall_rule(context, firewall_rule)
delete_firewall(context, id)
delete_firewall_policy(context, id)
delete_firewall_rule(context, id)
get_firewall(context, id, fields=None)
get_firewall_policies(context, filters=None, fields=None)
get_firewall_policy(context, id, fields=None)
get_firewall_rule(context, id, fields=None)
get_firewall_rules(context, filters=None, fields=None)
get_firewall_tenant_ids_on_host(context, host)
get_firewalls(context, filters=None, fields=None)
get_firewalls_count(context, filters=None)
get_firewalls_policies_count(context, filters=None)
get_firewalls_rules_count(context, filters=None)
insert_rule(context, id, rule_info)
remove_rule(context, id, rule_info)
update_firewall(context, id, firewall)
update_firewall_policy(context, id, firewall_policy)
update_firewall_rule(context, id, firewall_rule)
update_firewall_status(context, id, status, not_in=None)

Conditionally update firewall status.

Status transition is performed only if firewall is not in the specified states as defined by ‘not_in’ list.

neutron_fwaas.db.firewall.firewall_db.migration_callback(resource, event, trigger, **kwargs)
neutron_fwaas.db.firewall.firewall_db.subscribe()