Coder Social home page Coder Social logo

Comments (4)

kangasta avatar kangasta commented on July 29, 2024 1

I have edited the ovs_config.py script so that the socket file is moved to /var/lib/cni/vhostuser/$CONTAINER_ID/ and after this I can use the socket from inside the container similarly that I expect would be the process when using VPP.

From what I have understood, when using VPP as the switch the vpp_config.py creates the sockets to /var/lib/cni/vhostuser/$CONTAINER_ID/ and these are taken into use from inside the container by mounting the .../vhostuser/ folder and by using the get-prefix.sh script to get the container ID. Have I understood this correctly?

from userspace-cni-network-plugin.

rkamudhan avatar rkamudhan commented on July 29, 2024 1

@kangasta Can you send me the PR, I will check the changes and merge it?

from userspace-cni-network-plugin.

rkamudhan avatar rkamudhan commented on July 29, 2024

@kangasta /var/lib/cni/vhostuser/$CONTAINER_ID/ is for the saving the rendered netconf for cmdDel and application.

If you wish for the vhost-user sockets to be created in a sub-directory of /usr/local/var/run/openvswitch, you may specify this directory in the ovsdb like so:

$ ovs-vsctl --no-wait \
    set Open_vSwitch . other_config:vhost-sock-dir=subdir

Agree that I should update the README for the OVS separately :)

from userspace-cni-network-plugin.

rkamudhan avatar rkamudhan commented on July 29, 2024

Yes, you are correct on this.

from userspace-cni-network-plugin.

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.