tacker.nfvo.drivers.vim.openstack_driver module

class tacker.nfvo.drivers.vim.openstack_driver.OpenStack_Driver

Bases: VimAbstractDriver

Driver for OpenStack VIM

OpenStack driver handles interactions with local as well as remote OpenStack instances. The driver invokes keystone service for VIM authorization and validation. The driver is also responsible for discovering placement attributes such as regions, availability zones

authenticate_vim(vim_obj)

Validate VIM auth attributes

Initialize keystoneclient with provided authentication attributes.

delete_vim_auth(**kwargs)

Delete VIM auth keys

Delete VIM sensitive information such as keys from file system or DB

deregister_vim(**kwargs)

Deregister VIM object from NFVO plugin

Cleanup VIM data and delete VIM information

discover_placement_attr(vim_obj, ks_client)

Fetch VIM placement information

Attributes can include regions, AZ.

encode_vim_auth(**kwargs)

Encrypt VIM credentials

Encrypt and store VIM sensitive information such as password

get_description()
get_name()

Get VIM name

Return a symbolic name for the VIM driver.

get_type()

Get VIM Driver type

Return one of predefined types of VIMs.

get_vim_resource_id(**kwargs)

Parses a VIM resource ID from a given type and name

Parameters:
  • vim_obj – VIM information

  • resource_type – type of resource, such as network, compute

  • resource_name – name of resource, such at “test-network”

Returns:

ID of resource

register_vim(**kwargs)

Register VIM object in to NFVO plugin

Validate, encode and store VIM information for deploying VNFs.

tacker.nfvo.drivers.vim.openstack_driver.config_opts()