neutron_fwaas.db.firewall.v2.firewall_db_v2 module

class neutron_fwaas.db.firewall.v2.firewall_db_v2.DefaultFirewallGroup(**kwargs)

Bases: BASEV2, HasProjectPrimaryKey

firewall_group
firewall_group_id
project_id
tenant_id
exception neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallDefaultObjectUpdateRestricted(**kwargs)

Bases: FirewallDefaultParameterExists

message = "Operation cannot be performed on default object '%(resource_id)s' of type %(resource_type)s."
exception neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallDefaultParameterExists(**kwargs)

Bases: InUse

Default Firewall Parameter conflict exception

Occurs when user creates/updates any existing firewall resource with reserved parameter names.

message = "Operation cannot be performed since '%(name)s' is a reserved name for %(resource_type)s."
class neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallGroup(*args, **kwargs)

Bases: HasStandardAttributes, BASEV2, HasId, HasName, HasProject

admin_state_up
api_collections = ['firewall_groups']
collection_resource_map = {'firewall_groups': 'firewall_group'}
created_at = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'created_at'))
description = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'description'))
egress_firewall_policy_id
id
ingress_firewall_policy_id
name
port_associations
project_id
revision_number = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'revision_number'))
shared
standard_attr
standard_attr_id
status
tag_support = True
tenant_id
updated_at = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'updated_at'))
class neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallGroupPortAssociation(**kwargs)

Bases: BASEV2

firewall_group_id
firewall_group_port_associations_v2
port_id
class neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallPluginDb(*args, **kwargs)

Bases: object

create_firewall_group(context, firewall_group)
create_firewall_policy(context, firewall_policy)
create_firewall_rule(context, firewall_rule)
delete_firewall_group(context, id)
delete_firewall_policy(context, id)
delete_firewall_rule(context, id)
get_firewall_group(context, id, fields=None)
get_firewall_groups(context, filters=None, 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_fwg_attached_to_port(context, port_id)

Return a firewall group ID that is attached to a given port

get_fwg_ports_in_tenant(context, tenant_id)

Return a list of ports under a given tenant

get_fwgs_with_policy(context, fwp_id)
get_policies_with_rule(context, fwrid)

Gets rules in a firewall policy

get_ports_in_firewall_group(context, firewall_group_id)

Get the Ports associated with the firewall group.

insert_rule(context, id, rule_info)
make_firewall_group_dict_with_rules(context, firewall_group_id)
remove_rule(context, id, rule_info)
update_firewall_group(context, id, firewall_group)
update_firewall_group_status(context, id, status, not_in=None)

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

update_firewall_policy(context, id, firewall_policy)
update_firewall_rule(context, id, firewall_rule)
class neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallPolicy(*args, **kwargs)

Bases: HasStandardAttributes, BASEV2, HasId, HasName, HasProject

api_collections = ['firewall_policies']
audited
collection_resource_map = {'firewall_policies': 'firewall_policy'}
created_at = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'created_at'))
description = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'description'))
id
name
project_id
revision_number = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'revision_number'))
rule_associations
rule_count
shared
standard_attr
standard_attr_id
tag_support = True
tenant_id
updated_at = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'updated_at'))
class neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallPolicyRuleAssociation(**kwargs)

Bases: BASEV2

Tracks FW Policy and Rule(s) Association

firewall_policies_v2
firewall_policy_id
firewall_rule_id
position
class neutron_fwaas.db.firewall.v2.firewall_db_v2.FirewallRuleV2(*args, **kwargs)

Bases: HasStandardAttributes, BASEV2, HasId, HasName, HasProject

action
api_collections = ['firewall_rules']
collection_resource_map = {'firewall_rules': 'firewall_rule'}
created_at = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'created_at'))
description = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'description'))
destination_ip_address
destination_port_range_max
destination_port_range_min
enabled
id
ip_version
name
project_id
protocol
revision_number = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'revision_number'))
shared
source_ip_address
source_port_range_max
source_port_range_min
standard_attr
standard_attr_id
tag_support = True
tenant_id
updated_at = ColumnAssociationProxyInstance(AssociationProxy('standard_attr', 'updated_at'))
class neutron_fwaas.db.firewall.v2.firewall_db_v2.HasDescription

Bases: object

description = Column(None, String(length=1024), table=None)
class neutron_fwaas.db.firewall.v2.firewall_db_v2.HasName

Bases: object

name = Column(None, String(length=255), table=None)