This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Python version of the vnfm-sdk

This project contains a vnfm sdk for python projects.

Technical Requirements

This section covers the requirements that must be met by the python-vnfm-sdk in order to satisfy the demands for such a component:

  • python 2.7
  • pika

How to install the python-vfnm-sdk

The safer way to start is to use a virtual environment. Once activated, just run

pip install python-vnfm-sdk

How to use the python-vfnm-sdk

First step, let’s create a configuration file for the VNFManager under: /etc/openbaton/<type>/conf.ini (where type is the endpoint specified in the vnfd.json)

This file should be like this:

[vnfm]

log_path=/var/log/openbaton/
broker_ip=localhost
username=admin
password=openbaton
heartbeat=60
exchange=openbaton-exchange
endpoint_type=RABBIT

where:

log_path path where the logfile will be written

broker_ip Ip of the rabbitmq broker used by the nfvo

username username for the rabbitmq broker used by the nfvo

password password for the rabbitmq broker used by the nfvo

exchange exchange name used in the rabbitmq broker by the nfvo

heartbeat heartbeat for the rabbitmq connection

endpoint_type must be RABBIT

After installing the sdk, you will be able to write a Vnfm that inherit the AbstractVnfm class in this way:

import json
import logging.config

from interfaces.AbstractVnfmABC import AbstractVnfm

class PythonVnfm(AbstractVnfm):
    def upgradeSoftware(self):
        pass

    def updateSoftware(self):
        pass

    def terminate(self, vnf_record):
        log.info("Executing TERMINATE for VNFR: %s" % vnf_record.get("name"))
        return vnf_record

    def stopVNFCInstance(self, vnf_record, vnfc_instance):
        pass

    def stop(self, vnf_record):
        pass

    def startVNFCInstance(self, vnf_record, vnfc_instance):
        pass

    def start(self, vnf_record):
        log.info("Executing start for VNFR: %s" % vnf_record.get("name"))
        return vnf_record

    def scale(self, scale_out, vnf_record, vnf_component, scripts, dependency):
        pass

    def query(self):
        pass

    def notifyChange(self):
        pass

    def modify(self, vnf_record, dependency):
        log.info("Executing modify for VNFR: %s" % vnf_record.get("name"))
        return vnf_record

    def instantiate(self, vnf_record, scripts, vim_instances):
        log.info("Executing instantiate for VNFR: %s" % vnf_record.get("name"))
        return vnf_record

    def heal(self, vnf_record, vnf_instance, cause):
        pass

    def handleError(self, vnf_record):
        log.info("Executing ERROR for VNFR: %s" % vnf_record.get("name"))
        return vnf_record

    def checkInstantiationFeasibility(self):
        pass

Then you must start it in this way, passing the type to the constructor

if __name__ == "__main__":
    logging.basicConfig(level="DEBUG")
    vnfm = PythonVnfm("python")
    vnfm.run()

This will register to the NFVO and start wait for the action addressed to the VNFM of type “python” in this example

Issue tracker

Issues and bug reports should be posted to the GitHub Issue Tracker of this project

What is Open Baton?

OpenBaton is an open source project providing a comprehensive implementation of the ETSI Management and Orchestration (MANO) specification.

Open Baton is a ETSI NFV MANO compliant framework. Open Baton was part of the OpenSDNCore (www.opensdncore.org) project started almost three years ago by Fraunhofer FOKUS with the objective of providing a compliant implementation of the ETSI NFV specification.

Open Baton is easily extensible. It integrates with OpenStack, and provides a plugin mechanism for supporting additional VIM types. It supports Network Service management either using a generic VNFM or interoperating with VNF-specific VNFM. It uses different mechanisms (REST or PUB/SUB) for interoperating with the VNFMs. It integrates with additional components for the runtime management of a Network Service. For instance, it provides autoscaling and fault management based on monitoring information coming from the the monitoring system available at the NFVI level.

Source Code and documentation

The Source Code of the other Open Baton projects can be found here and the documentation can be found here .

News and Website

Check the Open Baton Website Follow us on Twitter @openbaton.

Licensing and distribution

Copyright [2015-2016] Open Baton project

Licensed under the Apache License, Version 2.0 (the “License”);

you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2015-2016 Open Baton. Licensed under Apache v2 License.

Support

The Open Baton project provides community support through the Open Baton Public Mailing List and through StackOverflow using the tags openbaton.

Supported by

Release History

Release History

2.2.1b2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

2.2.1b1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

2.2.1b0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_vnfm_sdk-2.2.1b2-py2.py3-none-any.whl (18.6 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Oct 12, 2016
python-vnfm-sdk-2.2.1b2.tar.gz (8.8 kB) Copy SHA256 Checksum SHA256 Source Oct 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting