Giter Club home page Giter Club logo

Comments (5)

plribeiro3000 avatar plribeiro3000 commented on August 23, 2024

Hello @rgershkovich . Thank you for submitting this issue.
Would you be up to open a PR adding it?

from fog-libvirt.

rgershkovich avatar rgershkovich commented on August 23, 2024

@plribeiro3000, tried to dig in the issue yesterday. I found out that libvirt api (which is called in this piece via ruby-libvirt) is very modest in terms of available methods:
https://libvirt.org/ruby/api/Libvirt/Network.html#method-i-bridge_name

It's not possible to easily figure out which forward parameters the libvirt network uses via this api.
I see 2 options here: make bridge_name optional in network_to_attributes, or call net.xml_desc directly to scrap forward mode params from xml. Then some logic could be applied, e.g., if there is dev=ethX near mode="bridge", bridge_name should be optional (macvlan/macvtap mode), otherwise - not.

Can't say that I like these suggestions... Do you find any of these options acceptable, or maybe there is a better way?

from fog-libvirt.

plribeiro3000 avatar plribeiro3000 commented on August 23, 2024

Hmmm. Not sure if i have all the context but i believe your first suggestion would be the way to go.
We do some check and based on it we do send the attribute or not. Makes sense?

from fog-libvirt.

bmagistro avatar bmagistro commented on August 23, 2024

This seems to also apply to passthrough interfaces and may be related to #24 (at least with the trace there)
We got hit by this after the upgrade we did of foreman/puppet. As a total hack, I was able to a) remove the "bridge_name" or b) set it to the uuid as a work around.

from fog-libvirt.

github-actions avatar github-actions commented on August 23, 2024

This issue has been marked inactive and will be closed if no further activity occurs.

from fog-libvirt.

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.