neutron_fwaas.extensions.firewall_v2 module

class neutron_fwaas.extensions.firewall_v2.Firewall_v2

Bases: APIExtensionDescriptor

api_definition: Sentinel | object = <module 'neutron_lib.api.definitions.firewall_v2' from '/home/zuul/src/opendev.org/openstack/neutron-fwaas/.tox/docs/lib/python3.12/site-packages/neutron_lib/api/definitions/firewall_v2.py'>
classmethod get_plugin_interface()

Returns an abstract class which defines contract for the plugin.

The abstract class should inherit from neutron_lib.services.base.ServicePluginBase. Methods in this abstract class should be decorated as abstractmethod

classmethod get_resources()

List of extensions.ResourceExtension extension objects.

Resources define new nouns, and are accessible through URLs.

class neutron_fwaas.extensions.firewall_v2.Firewallv2PluginBase

Bases: ServicePluginBase

abstractmethod create_firewall_group(context, firewall_group)
abstractmethod create_firewall_policy(context, firewall_policy)
abstractmethod create_firewall_rule(context, firewall_rule)
abstractmethod delete_firewall_group(context, id)
abstractmethod delete_firewall_policy(context, id)
abstractmethod delete_firewall_rule(context, id)
abstractmethod get_firewall_group(context, id, fields=None)
abstractmethod get_firewall_groups(context, filters=None, fields=None)
abstractmethod get_firewall_policies(context, filters=None, fields=None)
abstractmethod get_firewall_policy(context, id, fields=None)
abstractmethod get_firewall_rule(context, id, fields=None)
abstractmethod get_firewall_rules(context, filters=None, fields=None)
get_plugin_description()

Return string description of the plugin.

get_plugin_type()

Return one of predefined service types.

abstractmethod insert_rule(context, id, rule_info)
abstractmethod remove_rule(context, id, rule_info)
abstractmethod update_firewall_group(context, id, firewall_group)
abstractmethod update_firewall_policy(context, id, firewall_policy)
abstractmethod update_firewall_rule(context, id, firewall_rule)