tacker.vnfm.nfvo_client module¶
-
exception
tacker.vnfm.nfvo_client.
FaliedDownloadContentException
¶ Bases:
Exception
-
class
tacker.vnfm.nfvo_client.
GrantRequest
¶ Bases:
object
-
OPTS
= [<oslo_config.cfg.StrOpt object>, <oslo_config.cfg.IntOpt object>, <oslo_config.cfg.IntOpt object>, <oslo_config.cfg.IntOpt object>]¶
-
classmethod
grants
(**kwargs)¶ grants request.
- Args:
- kwargs:
any other parameter that can be passed to requests.Session.request.
- Returns:
io.BytesIO: zip archive for vnf packages content.
- Raises:
- takcer.nfvo.nfvo_client.UndefinedExternalSettingException:
tacker.conf undefined setting.
- requests.exceptions.RequestException:
Failed connected, download vnf packages.
- takcer.nfvo.nfvo_client.FaliedDownloadContentException:
Failed content, create vnf package zip file.
-
classmethod
validate
()¶ Check config settings.
- Raises:
UndefinedExternalSettingException: tacker.conf undefined setting.
-
-
exception
tacker.vnfm.nfvo_client.
UndefinedExternalSettingException
¶ Bases:
Exception
-
class
tacker.vnfm.nfvo_client.
VnfPackageRequest
¶ Bases:
object
-
OPTS
= [<oslo_config.cfg.StrOpt object>, <oslo_config.cfg.ListOpt object>, <oslo_config.cfg.IntOpt object>, <oslo_config.cfg.IntOpt object>, <oslo_config.cfg.IntOpt object>]¶
-
classmethod
download_vnf_packages
(vnf_package_id, artifact_paths=None)¶ Get vnf packages from the nfvo.
- Args:
vnf_package_id (UUID): VNF Package ID artifact_paths (list, optional): artifatcs paths. Defaults to [].
- Returns:
io.BytesIO: zip archive for vnf packages content.
- Raises:
- takcer.nfvo.nfvo_client.UndefinedExternalSettingException:
tacker.conf undefined setting.
- requests.exceptions.RequestException:
Failed connected, download vnf packages.
- takcer.nfvo.nfvo_client.FaliedDownloadContentException:
Failed content, create vnf package zip file.
-
classmethod
index
(**kwargs)¶ List vnf package.
- Args:
- kwargs:
- any other parameter that can be passed
to requests.Session.request.
- Returns:
requests.Response: individual vnf package.
-
classmethod
show
(vnf_package_id, **kwargs)¶ Individual vnf package.
- Args:
vnf_package_id (UUID): VNF Package ID.
- kwargs:
- any other parameter that can be passed
to requests.Session.request.
- Returns:
requests.Response: individual vnf package.
-
classmethod
validate
()¶ Check config settings.
- Raises:
UndefinedExternalSettingException: tacker.conf undefined setting.
-