The networking_cisco.plugins.ml2.drivers.cisco.n1kv.network_profile_service Module

class networking_cisco.plugins.ml2.drivers.cisco.n1kv.network_profile_service.NetworkProfilePlugin

Bases: networking_cisco.plugins.ml2.drivers.cisco.n1kv.network_profile_service.NetworkProfile_db_mixin

Implementation of the Cisco N1KV Network Profile Service Plugin.

create_network_profile(context, network_profile, fields=None)

Create a network profile.

Parameters:
  • context – neutron api request context
  • network_profile – network profile dictionary
Returns:

network profile object

delete_network_profile(context, prof_id)

Delete a network profile.

Parameters:
  • context – neutron api request context
  • prof_id – UUID of the network profile to delete
Returns:

deleted network profile object

get_network_profile(context, prof_id, fields=None)

Return Cisco N1KV network profile by its UUID.

get_network_profile_bindings(context, filters=None, fields=None)
get_network_profiles(context, filters=None, fields=None)

Return Cisco N1KV network profiles.

supported_extension_aliases = [‘network_profile’]
update_network_profile(context, prof_id, network_profile)

Update a network profile.

Parameters:
  • context – neutron api request context
  • prof_id – UUID of the network profile to update
  • network_profile – dictionary containing network profile object
class networking_cisco.plugins.ml2.drivers.cisco.n1kv.network_profile_service.NetworkProfile_db_mixin

Bases: networking_cisco.plugins.ml2.drivers.cisco.n1kv.extensions.network_profile.NetworkProfilePluginBase, neutron.db.common_db_mixin.CommonDbMixin

Network Profile Mixin class.

create_network_profile(context, network_profile, fields=None)

Create a network profile.

Parameters:
  • context – neutron api request context
  • network_profile – network profile dictionary
Returns:

network profile dictionary

delete_network_profile(context, prof_id)

Delete a network profile.

Parameters:
  • context – neutron api request context
  • prof_id – UUID representing network profile to delete
Returns:

deleted network profile dictionary

get_network_profile(context, prof_id, fields=None)

Retrieve a network profile for the given UUID.

Parameters:
  • context – neutron api request context
  • prof_id – UUID representing network profile to fetch
Params fields:

a list of strings that are valid keys in a network profile dictionary. Only these fields will be returned

Returns:

network profile dictionary

get_network_profile_bindings(context, filters=None, fields=None)
get_network_profiles(context, filters=None, fields=None)

Retrieve a list of network profiles.

Retrieve all network profiles if tenant is admin. For a non-admin tenant, retrieve all network profiles belonging to this tenant only.

Parameters:
  • context – neutron api request context
  • filters – a dictionary with keys that are valid keys for a network profile object. Values in this dictiontary are an iterable containing values that will be used for an exact match comparison for that value. Each result returned by this function will have matched one of the values for each key in filters
Params fields:

a list of strings that are valid keys in a network profile dictionary. Only these fields will be returned

Returns:

list of all network profiles

update_network_profile(context, prof_id, network_profile)