Giter Site home page Giter Site logo

docker as vim about openmano HOT 5 OPEN

nfvlabs avatar nfvlabs commented on July 22, 2024 2
docker as vim

from openmano.

Comments (5)

alf-tierno avatar alf-tierno commented on July 22, 2024

Hi,
Currently openmano does not suppor docker/kubernetes as a VIM. You can implement it easily following this steps: https://osm.etsi.org/wikipub/index.php/Developer_HowTo_for_RO_Module#Creating_a_new_VIM_plugin

On the other hand latest versions of openmano is no longer hosted at github but at ETSI, it is a component (called RO) of the OSM project (https://osm.etsi.org).

from openmano.

nephilimboy avatar nephilimboy commented on July 22, 2024

thanks for reply,, i wrote the vimconn_docker.py and put it in openmano package how can i cant install plugin in openmano,, i noticed in "nfvo.py" we have this line of code

 vim_dict={}
    for vim in content:
        extra={'datacenter_tenant_id': vim.get('datacenter_tenant_id')}
        if vim["config"] != None:
            extra.update(yaml.load(vim["config"]))
        if vim["type"] not in vimconn_imported:
            module_info=None
            try:
                module = "vimconn_" + vim["type"]
                module_info = imp.find_module(module)
                vim_conn = imp.load_module(vim["type"], *module_info)
                vimconn_imported[vim["type"]] = vim_conn
            except (IOError, ImportError) as e:
                if module_info and module_info[0]:
                    file.close(module_info[0])
                print "Cannot open VIM module '%s.py'; %s: %s" % ( module, type(e).__name__, str(e))
                return -HTTP_Bad_Request, "Unknown vim type %s" % vim["type"]

        try:
            #if not tenant:
            #    return -HTTP_Bad_Request, "You must provide a valid tenant name or uuid for VIM  %s" % ( vim["type"])
            vim_dict[ vim['datacenter_id'] ] = vimconn_imported[ vim["type"] ].vimconnector(
                            uuid=vim['datacenter_id'], name=vim['datacenter_name'],
                            tenant_id=vim.get('vim_tenant_id'), tenant_name=vim.get('vim_tenant_name'),
                            url=vim['vim_url'], url_admin=vim['vim_url_admin'], 
                            user=vim.get('user'), passwd=vim.get('passwd'),
                            config=extra
                    )

is that means openmano automatically find the vimconn_docker and i dont need to add my python docker connector to it? if not, how can i install my python class to openmano? cuz i already put my class in the folder but nothing happen when i create vnf's.
i used these command according to https://github.com/nfvlabs/openmano/wiki/using-openstack-as-a-VIM

./openmano datacenter-create  myos "test_url" --type=docker --config=test_config"

from openmano.

alf-tierno avatar alf-tierno commented on July 22, 2024

from openmano.

MoubarakZoure avatar MoubarakZoure commented on July 22, 2024

Hello nephilimboy
Please can you share with me your vim_connect class ?

from openmano.

nephilimboy avatar nephilimboy commented on July 22, 2024

Hi MoubarakZoure
Sadly i have lost my old customized Openmano source code and slides. As alf-tierno mentioned before, you can use the latest ETSI or use and customize other opensource solutions like my latest project https://nephilimboy.github.io/XNFV/

from openmano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.