[ovs-discuss] Open vSwitch packages for Go
Hi all, I spoke about DigitalOcean's OvS package at the fall conference, and I'm happy to announce that we've open sourced our OvS tooling for Go: https://github.com/digitalocean/go-openvswitch ovs is the package that is currently used in production. ovsdb and ovsnl are a couple of experiments, but I'd like to flesh them out as they may be useful for future projects, such as gathering metrics from OvS or possibly integrating with OVN/ovn-controller in some fashion. I hope that these end up being useful for folks outside of DigitalOcean as well. Feel free to reach out if you have any questions or comments. Thanks for your time! Matt Layher Senior Software Engineer, DigitalOcean ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Programming flows to bond port
As Ben mentioned, unfortunately, bonds don't have OpenFlow port number. Depending on what you want to do, you may be able to get similar results with either the "group" functionality or the "bundle" action (note this is the OVS bundle action and not OpenFlow bundle transaction semantics--they're both described in the ovs-ofctl man page). --Justin > On Dec 4, 2017, at 6:12 AM, Pradeep K.S wrote: > > I have a created bond interface, with multiple slaves. I want to program flows > such that packets arriving on port X -> should be directed to bond port But > the > problem is bond port doesn't have ofportid, how to program such a flow using > ovs-ofctl > > I tried setting bond_fake_iface, still I don't get ofportid to program > ovs-ofctl flows. > > -- > Thanks and Regards, > Pradeep.K.S. > ___ > discuss mailing list > disc...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Programming flows to bond port
On Mon, Dec 04, 2017 at 07:42:06PM +0530, Pradeep K.S wrote: > I have a created bond interface, with multiple slaves. I want to program > flows > such that packets arriving on port X -> should be directed to bond port > But the > problem is bond port doesn't have ofportid, how to program such a flow > using ovs-ofctl > > I tried setting bond_fake_iface, still I don't get ofportid to program > ovs-ofctl flows. I don't think this is currently possible. The FAQ says: Q: It looks like each of the interfaces in my bonded port shows up as an individual OpenFlow port. Is that right? A: Yes, Open vSwitch makes individual bond interfaces visible as OpenFlow ports, rather than the bond as a whole. The interfaces are treated together as a bond for only a few purposes: - Sending a packet to the OFPP_NORMAL port. (When an OpenFlow controller is not configured, this happens implicitly to every packet.) - Mirrors configured for output to a bonded port. It would make a lot of sense for Open vSwitch to present a bond as a single OpenFlow port. If you want to contribute an implementation of such a feature, please bring it up on the Open vSwitch development mailing list at d...@openvswitch.org. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] ovndb_servers can't be promoted
Thanks Numan, so sorry for occupying your much time on it. I have fixed the problem, but not with very clear reason, after the cloud completed deployment with puppet(not TrippleO), no matter what I am using, either 'pcs' or 'crm', the resource just could not start as it is expected. but if I use some native puppet provider like crm(cib), it just works... Now, the ovndb-server can started and selected master, however, one as master and others are stopped, first I will do more testing and debugging to exclud somthing wrong in my special environment, I will let you know if I found something related with ovndb-server ocf itself, meantime I am very happy to try out your patches since you said you have seen the problem on promote as well. Thanks. Hui. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Programming flows to bond port
I have a created bond interface, with multiple slaves. I want to program flows such that packets arriving on port X -> should be directed to bond port But the problem is bond port doesn't have ofportid, how to program such a flow using ovs-ofctl I tried setting bond_fake_iface, still I don't get ofportid to program ovs-ofctl flows. -- Thanks and Regards, Pradeep.K.S. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss