The neutron_fwaas.extensions.firewall Module

class neutron_fwaas.extensions.firewall.Firewall

Bases: neutron_lib.api.extensions.ExtensionDescriptor

classmethod get_alias()
classmethod get_description()
get_extended_resources(version)
classmethod get_name()
classmethod get_plugin_interface()
classmethod get_resources()
classmethod get_updated()
update_attributes_map(attributes)
exception neutron_fwaas.extensions.firewall.FirewallInPendingState(**kwargs)

Bases: neutron_lib.exceptions.Conflict

message = u’Operation cannot be performed since associated Firewall %(firewall_id)s is in %(pending_state)s.’
exception neutron_fwaas.extensions.firewall.FirewallInUse(**kwargs)

Bases: neutron_lib.exceptions.InUse

message = u’Firewall %(firewall_id)s is still active.’
exception neutron_fwaas.extensions.firewall.FirewallInternalDriverError(**kwargs)

Bases: neutron_lib.exceptions.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 = u’%(driver)s: Internal driver error.’
exception neutron_fwaas.extensions.firewall.FirewallIpAddressConflict(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’Invalid input - IP addresses do not agree with IP Version’
exception neutron_fwaas.extensions.firewall.FirewallNotFound(**kwargs)

Bases: neutron_lib.exceptions.NotFound

message = u’Firewall %(firewall_id)s could not be found.’
class neutron_fwaas.extensions.firewall.FirewallPluginBase

Bases: neutron_lib.services.base.ServicePluginBase

create_firewall(context, firewall)
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_firewalls(context, filters=None, fields=None)
get_plugin_description()
get_plugin_name()
get_plugin_type()
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)
exception neutron_fwaas.extensions.firewall.FirewallPolicyConflict(**kwargs)

Bases: neutron_lib.exceptions.Conflict

FWaaS exception for firewall policy

Occurs when admin policy tries to use another tenant’s unshared policy.

message = u’Operation cannot be performed since Firewall Policy %(firewall_policy_id)s is not shared and does not belong to your tenant.’
exception neutron_fwaas.extensions.firewall.FirewallPolicyInUse(**kwargs)

Bases: neutron_lib.exceptions.InUse

message = u’Firewall Policy %(firewall_policy_id)s is being used.’
exception neutron_fwaas.extensions.firewall.FirewallPolicyNotFound(**kwargs)

Bases: neutron_lib.exceptions.NotFound

message = u’Firewall Policy %(firewall_policy_id)s could not be found.’
exception neutron_fwaas.extensions.firewall.FirewallPolicySharingConflict(**kwargs)

Bases: neutron_lib.exceptions.Conflict

FWaaS exception for firewall policy

When a policy is shared without sharing its associated rules, this exception will be raised.

message = u’Operation cannot be performed. Before sharing Firewall Policy %(firewall_policy_id)s, share associated Firewall Rule %(firewall_rule_id)s’
exception neutron_fwaas.extensions.firewall.FirewallRuleConflict(**kwargs)

Bases: neutron_lib.exceptions.Conflict

Firewall rule conflict exception.

Occurs when admin policy tries to use another tenant’s unshared rule.

message = u’Operation cannot be performed since Firewall Rule %(firewall_rule_id)s is not shared and belongs to another tenant %(tenant_id)s’
exception neutron_fwaas.extensions.firewall.FirewallRuleInUse(**kwargs)

Bases: neutron_lib.exceptions.InUse

message = u’Firewall Rule %(firewall_rule_id)s is being used.’
exception neutron_fwaas.extensions.firewall.FirewallRuleInfoMissing(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’Missing rule info argument for insert/remove rule operation.’
exception neutron_fwaas.extensions.firewall.FirewallRuleInvalidAction(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’Firewall rule action %(action)s is not supported. Only action values %(values)s are supported.’
exception neutron_fwaas.extensions.firewall.FirewallRuleInvalidICMPParameter(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’%(param)s are not allowed when protocol is set to ICMP.’
exception neutron_fwaas.extensions.firewall.FirewallRuleInvalidPortValue(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’Invalid value for port %(port)s.’
exception neutron_fwaas.extensions.firewall.FirewallRuleInvalidProtocol(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’Firewall Rule protocol %(protocol)s is not supported. Only protocol values %(values)s and their integer representation (0 to 255) are supported.’
exception neutron_fwaas.extensions.firewall.FirewallRuleNotAssociatedWithPolicy(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’Firewall Rule %(firewall_rule_id)s is not associated with Firewall Policy %(firewall_policy_id)s.’
exception neutron_fwaas.extensions.firewall.FirewallRuleNotFound(**kwargs)

Bases: neutron_lib.exceptions.NotFound

message = u’Firewall Rule %(firewall_rule_id)s could not be found.’
exception neutron_fwaas.extensions.firewall.FirewallRuleSharingConflict(**kwargs)

Bases: neutron_lib.exceptions.Conflict

FWaaS exception for firewall rules

When a shared policy is created or updated with unshared rules, this exception will be raised.

message = u’Operation cannot be performed since Firewall Policy %(firewall_policy_id)s is shared but Firewall Rule %(firewall_rule_id)s is not shared’
exception neutron_fwaas.extensions.firewall.FirewallRuleWithPortWithoutProtocolInvalid(**kwargs)

Bases: neutron_lib.exceptions.InvalidInput

message = u’Source/destination port requires a protocol’
neutron_fwaas.extensions.firewall.convert_action_to_case_insensitive(value)
neutron_fwaas.extensions.firewall.convert_port_to_string(value)
neutron_fwaas.extensions.firewall.convert_protocol(value)