neutron_lib.plugins.directory.add_plugin(alias, plugin)¶neutron_lib.plugins.directory.get_plugin(alias='CORE')¶neutron_lib.plugins.directory.get_plugins()¶neutron_lib.plugins.directory.get_unique_plugins()¶neutron_lib.plugins.directory.is_loaded()¶neutron_lib.plugins.utils.delete_port_on_error(*args, **kwds)¶A decorator that deletes a port upon exception.
This decorator can be used to wrap a block of code that should delete a port if an exception is raised during the block’s execution.
| Parameters: | 
 | 
|---|---|
| Returns: | None | 
neutron_lib.plugins.utils.get_interface_name(name, prefix='', max_len=15)¶Construct an interface name based on the prefix and name.
The interface name can not exceed the maximum length passed in. Longer names are hashed to help ensure uniqueness.
neutron_lib.plugins.utils.in_pending_status(status)¶Return True if status is a form of pending
neutron_lib.plugins.utils.is_valid_geneve_vni(vni)¶Validate a Geneve VNI
| Parameters: | vni – The VNI to validate. | 
|---|---|
| Returns: | True if vni is a number that’s a valid Geneve VNI. | 
neutron_lib.plugins.utils.is_valid_gre_id(gre_id)¶Validate a GRE ID.
| Parameters: | gre_id – The GRE ID to validate. | 
|---|---|
| Returns: | True if gre_id is a number that’s a valid GRE ID. | 
neutron_lib.plugins.utils.is_valid_vlan_tag(vlan)¶Validate a VLAN tag.
| Parameters: | vlan – The VLAN tag to validate. | 
|---|---|
| Returns: | True if vlan is a number that is a valid VLAN tag. | 
neutron_lib.plugins.utils.is_valid_vxlan_vni(vni)¶Validate a VXLAN VNI.
| Parameters: | vni – The VNI to validate. | 
|---|---|
| Returns: | True if vni is a number that’s a valid VXLAN VNI. | 
neutron_lib.plugins.utils.parse_network_vlan_range(network_vlan_range)¶Parse a well formed network VLAN range string.
| Parameters: | network_vlan_range – The network VLAN range string to parse. | 
|---|---|
| Returns: | A tuple who’s 1st element is the network name and 2nd element is the VLAN range parsed from network_vlan_range. | 
| Raises: | NetworkVlanRangeError if network_vlan_range is malformed. PhysicalNetworkNameError if network_vlan_range is missing a network name. | 
neutron_lib.plugins.utils.parse_network_vlan_ranges(network_vlan_ranges_cfg_entries)¶Parse a list of well formed network VLAN range string.
Behaves like parse_network_vlan_range, but parses a list of network VLAN strings into an ordered dict.
| Parameters: | network_vlan_ranges_cfg_entries – The list of network VLAN strings to parse. | 
|---|---|
| Returns: | An OrderedDict who’s keys are network names and values are the list of VLAN ranges parsed. | 
| Raises: | See parse_network_vlan_range. | 
neutron_lib.plugins.utils.update_port_on_error(*args, **kwds)¶A decorator that updates a port upon exception.
This decorator can be used to wrap a block of code that should update a port if an exception is raised during the block’s execution.
| Parameters: | 
 | 
|---|---|
| Returns: | None | 
neutron_lib.plugins.utils.verify_tunnel_range(tunnel_range, tunnel_type)¶Verify a given tunnel range is valid given it’s tunnel type.
Existing validation is done for GRE, VXLAN and GENEVE types as per _TUNNEL_MAPPINGS.
| Parameters: | 
 | 
|---|---|
| Returns: | None if the tunnel_range is valid. | 
| Raises: | NetworkTunnelRangeError if tunnel_range is invalid. | 
neutron_lib.plugins.utils.verify_vlan_range(vlan_range)¶Verify a VLAN range is valid.
| Parameters: | vlan_range – An iterable who’s 0 index is the min tunnel range and who’s 1 index is the max tunnel range. | 
|---|---|
| Returns: | None if the vlan_range is valid. | 
| Raises: | NetworkVlanRangeError if vlan_range is not valid. | 
 
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.