The neutron_taas.extensions.taas
Module¶
-
exception
neutron_taas.extensions.taas.
InvalidDestinationPort
(**kwargs)¶ Bases:
neutron_lib.exceptions.NotFound
-
message
= u'Destination Port %(port)s does not exist'¶
-
-
exception
neutron_taas.extensions.taas.
InvalidSourcePort
(**kwargs)¶ Bases:
neutron_lib.exceptions.NotFound
-
message
= u'Source Port %(port)s does not exist'¶
-
-
exception
neutron_taas.extensions.taas.
PortDoesNotBelongToTenant
(**kwargs)¶ Bases:
neutron_lib.exceptions.NotAuthorized
-
message
= u'The specified port does not belong to the tenant'¶
-
-
class
neutron_taas.extensions.taas.
Taas
¶ Bases:
neutron_lib.api.extensions.ExtensionDescriptor
-
classmethod
get_alias
()¶ The alias for the extension.
e.g. ‘FOXNSOX’
-
classmethod
get_description
()¶ Friendly description for the extension.
e.g. ‘The Fox In Socks Extension’
-
get_extended_resources
(version)¶ Retrieve extended resources or attributes for core resources.
Extended attributes are implemented by a core plugin similarly to the attributes defined in the core, and can appear in request and response messages. Their names are scoped with the extension’s prefix. The core API version is passed to this function, which must return a map[<resource_name>][<attribute_name>][<attribute_property>] specifying the extended resource attribute properties required by that API version. Extension can add resources and their attr definitions too. The returned map can be integrated into RESOURCE_ATTRIBUTE_MAP.
-
classmethod
get_name
()¶ The name of the extension.
e.g. ‘Fox In Socks’
-
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
()¶ Returns Ext Resources.
-
classmethod
get_updated
()¶ The timestamp when the extension was last updated.
e.g. ‘2011-01-22T13:25:27-06:00’
-
update_attributes_map
(attributes)¶ Update attributes map for this extension.
This is default method for extending an extension’s attributes map. An extension can use this method and supplying its own resource attribute map in extension_attrs_map argument to extend all its attributes that needs to be extended. If an extension does not implement update_attributes_map, the method does nothing and just return.
-
classmethod
-
class
neutron_taas.extensions.taas.
TaasPluginBase
¶ Bases:
neutron_lib.services.base.ServicePluginBase
-
create_tap_flow
(context, tap_flow)¶ Create a Tap Flow.
-
create_tap_service
(context, tap_service)¶ Create a Tap Service.
-
delete_tap_flow
(context, id)¶ Delete a Tap Flow.
-
delete_tap_service
(context, id)¶ Delete a Tap Service.
-
get_plugin_description
()¶ Return string description of the plugin.
-
classmethod
get_plugin_type
()¶ Return one of predefined service types.
-
get_tap_flow
(context, id, fields=None)¶ Get a Tap Flow.
-
get_tap_flows
(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)¶ List all Tap Flows.
-
get_tap_service
(context, id, fields=None)¶ Get a Tap Service.
-
get_tap_services
(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)¶ List all Tap Services.
-
update_tap_flow
(context, id, tap_flow)¶ Update a Tap Flow.
-
update_tap_service
(context, id, tap_service)¶ Update a Tap Service.
-
-
exception
neutron_taas.extensions.taas.
TapFlowNotFound
(**kwargs)¶ Bases:
neutron_lib.exceptions.NotFound
-
message
= u'Tap Flow %(flow_id)s does not exist'¶
-
-
exception
neutron_taas.extensions.taas.
TapServiceLimitReached
(**kwargs)¶ Bases:
neutron_lib.exceptions.OverQuota
-
message
= u'Reached the maximum quota for Tap Services'¶
-
-
exception
neutron_taas.extensions.taas.
TapServiceNotBelongToTenant
(**kwargs)¶ Bases:
neutron_lib.exceptions.NotAuthorized
-
message
= u'Specified Tap Service does not belong to the tenant'¶
-
-
exception
neutron_taas.extensions.taas.
TapServiceNotFound
(**kwargs)¶ Bases:
neutron_lib.exceptions.NotFound
-
message
= u'Tap Service %(tap_id)s does not exist'¶
-
-
neutron_taas.extensions.taas.
direction_enum
= ['IN', 'OUT', 'BOTH']¶ Resource Attribute Map:
Note:
‘tap_services’ data model refers to the Tap Service created. port_id specifies destination port to which the mirrored data is sent.