# neutron_lib.exceptions.firewall_v2 module

exception neutron_lib.exceptions.firewall_v2.FirewallGroupCannotRemoveDefault(**kwargs)

  Bases: `InUse`

  message = 'Deleting default firewall group not allowed.'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupCannotUpdateDefault(**kwargs)

  Bases: `InUse`

  message = 'Updating default firewall group not allowed.'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupDefaultAlreadyExists(**kwargs)

  Bases: `InUse`

  Default firewall group conflict exception

  Occurs when a user creates firewall group named ‘default’.

  message = "Default firewall group already exists. 'default' is the reserved name for firewall group."

exception neutron_lib.exceptions.firewall_v2.FirewallGroupInPendingState(**kwargs)

  Bases: `Conflict`

  message = 'Operation cannot be performed since associated firewall group %(firewall_id)s is in %(pending_state)s.'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupInUse(**kwargs)

  Bases: `InUse`

  message = 'Firewall group %(firewall_id)s is still active.'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupNotFound(**kwargs)

  Bases: `NotFound`

  message = 'Firewall group %(firewall_id)s could not be found.'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupPortInUse(**kwargs)

  Bases: `InUse`

  message = 'Port(s) %(port_ids)s provided already associated with other firewall group(s).'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupPortInvalid(**kwargs)

  Bases: `Conflict`

  message = 'Port %(port_id)s of firewall group is invalid.'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupPortInvalidProject(**kwargs)

  Bases: `Conflict`

  message = 'Operation cannot be performed as port %(port_id)s is in an invalid project %(project_id)s.'

exception neutron_lib.exceptions.firewall_v2.FirewallGroupPortNotSupported(**kwargs)

  Bases: `Conflict`

  message = "Port %(port_id)s is not supported by firewall driver '%(driver_name)s'."

exception neutron_lib.exceptions.firewall_v2.FirewallInternalDriverError(**kwargs)

  Bases: `NeutronException`

  FWaaS exception for all driver errors

  On any failure or exception in the driver, driver should log it and raise this exception to the agent

  message = '%(driver)s: Internal driver error.'

exception neutron_lib.exceptions.firewall_v2.FirewallIpAddressConflict(**kwargs)

  Bases: `InvalidInput`

  message = 'Invalid input - IP addresses do not agree with IP Version.'

exception neutron_lib.exceptions.firewall_v2.FirewallPolicyConflict(**kwargs)

  Bases: `NotFound`

  FWaaS exception raised for firewall policy conflict

  Raised when user tries to use another project’s unshared policy.

  message = 'Operation cannot be performed since firewall policy %(firewall_policy_id)s for your project could not be found. Please confirm if the firewall policy exists and is shared.'

exception neutron_lib.exceptions.firewall_v2.FirewallPolicyInUse(**kwargs)

  Bases: `InUse`

  message = 'Firewall policy %(firewall_policy_id)s is being used.'

exception neutron_lib.exceptions.firewall_v2.FirewallPolicyNotFound(**kwargs)

  Bases: `NotFound`

  message = 'Firewall policy %(firewall_policy_id)s could not be found.'

exception neutron_lib.exceptions.firewall_v2.FirewallPolicySharingConflict(**kwargs)

  Bases: `Conflict`

  FWaaS exception raised for sharing policies

  Raised if policy is ‘shared’ but its associated rules are not.

  message = 'Operation cannot be performed. Before sharing firewall policy %(firewall_policy_id)s, share associated firewall rule %(firewall_rule_id)s.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleAlreadyAssociated(**kwargs)

  Bases: `Conflict`

  FWaaS exception for an already associated rule

  Occurs when there is an attempt to assign a rule to a policy that the rule is already associated with.

  message = 'Operation cannot be performed since firewall rule %(firewall_rule_id)s is already associated with firewall policy %(firewall_policy_id)s.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleConflict(**kwargs)

  Bases: `Conflict`

  FWaaS rule conflict exception

  Occurs when admin policy tries to use another project’s rule that is not shared.

  message = 'Operation cannot be performed since firewall rule %(firewall_rule_id)s is not shared and belongs to another project %(project_id)s.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleInUse(**kwargs)

  Bases: `InUse`

  message = 'Firewall rule %(firewall_rule_id)s is being used.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleInfoMissing(**kwargs)

  Bases: `InvalidInput`

  message = 'Missing rule info argument for insert/remove rule operation.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleInvalidAction(**kwargs)

  Bases: `InvalidInput`

  message = 'Action %(action)s is not supported. Only action values %(values)s are supported.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleInvalidICMPParameter(**kwargs)

  Bases: `InvalidInput`

  message = '%(param)s are not allowed when protocol is set to ICMP.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleInvalidPortValue(**kwargs)

  Bases: `InvalidInput`

  message = 'Invalid value for port %(port)s.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleInvalidProtocol(**kwargs)

  Bases: `InvalidInput`

  message = 'Protocol %(protocol)s is not supported. Only protocol values %(values)s and their integer representation (0 to 255) are supported.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleNotAssociatedWithPolicy(**kwargs)

  Bases: `InvalidInput`

  message = 'Firewall rule %(firewall_rule_id)s is not associated with firewall policy %(firewall_policy_id)s.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleNotFound(**kwargs)

  Bases: `NotFound`

  message = 'Firewall rule %(firewall_rule_id)s could not be found.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleSharingConflict(**kwargs)

  Bases: `NotFound`

  FWaaS exception for sharing policies

  Raised when shared policy uses unshared rules.

  message = 'Operation cannot be performed since firewall policy %(firewall_policy_id)s could not find the firewall rule %(firewall_rule_id)s. Please confirm if the firewall rule exists and is shared.'

exception neutron_lib.exceptions.firewall_v2.FirewallRuleWithPortWithoutProtocolInvalid(**kwargs)

  Bases: `InvalidInput`

  message = 'Source/destination port requires a protocol.'

this page last updated: 2026-03-03 11:51:03

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug