neutron_fwaas.db.firewall.v2.firewall_db_v2 module

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.FirewallPluginDb

Bases: object

create_firewall_group(context: Context, firewall_group: dict[str, Any]) → Any
create_firewall_policy(context: Context, firewall_policy: dict[str, Any]) → Any
create_firewall_rule(context: Context, firewall_rule: dict[str, Any]) → Any
delete_firewall_group(context: Context, id: str) → None
delete_firewall_policy(context: Context, id: str) → None
delete_firewall_rule(context: Context, id: str) → None
get_firewall_group(context: Context, id: str, fields: dict[str, Any] | None = None) → Any
get_firewall_groups(context: Context, filters: dict[str, Any] | None = None, fields: dict[str, Any] | None = None) → list[Any]
get_firewall_policies(context: Context, filters: dict[str, Any] | None = None, fields: dict[str, Any] | None = None) → list[Any]
get_firewall_policy(context: Context, id: str, fields: dict[str, Any] | None = None) → Any
get_firewall_rule(context: Context, id: str, fields: dict[str, Any] | None = None) → Any
get_firewall_rules(context: Context, filters: dict[str, Any] | None = None, fields: dict[str, Any] | None = None) → list[Any]
get_fwg_attached_to_port(context: Context, port_id: str) → str | None

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

get_fwg_ports_in_project(context: Context, project_id: str) → list[str]

Return a list of ports under a given project

get_fwgs_with_policy(context: Context, fwp_id: str) → tuple[list[str], list[str]]
get_policies_with_rule(context: Context, fwrid: str) → list[str]

Gets policies that contain a given firewall rule

get_ports_in_firewall_group(context: Context, firewall_group_id: str) → list[str]

Get the Ports associated with the firewall group.

insert_rule(context: Context, id: str, rule_info: dict[str, Any]) → Any
make_firewall_group_dict_with_rules(context: Context, firewall_group_id: str) → dict[str, Any]

Build a dict with embedded rule lists, suitable for RPC.

remove_rule(context: Context, id: str, rule_info: dict[str, Any]) → Any
update_firewall_group(context: Context, id: str, firewall_group: dict[str, Any]) → Any
update_firewall_group_status(context: Context, id: str, status: str, not_in: list[str] | None = None) → int

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: Context, id: str, firewall_policy: dict[str, Any]) → Any
update_firewall_rule(context: Context, id: str, firewall_rule: dict[str, Any]) → Any