Re: [ovs-discuss] Register one OVS bridge to 2 unrelated controllers...
Great! In reading about this feature (thanks to your response), it looks like the controller needs to present a connection id to OVS, which it will only do if it supports the "NXT_SET_CONTROLLER_ID Nicira extension". Anyone by chance know if this extension is something Opendaylight supports? If not, no worries, I can ping their mailing list about it. Thanks for the quick reply Ben! On Wed, Jan 4, 2017 at 11:18 AM, Ben Pfaffwrote: > On Wed, Jan 04, 2017 at 11:05:07AM -0700, Sterdnot Shaken wrote: > > Can you register one OVS bridge to 2 separate controllers and then, using > > flow's, send some traffic to one controller and send some traffic to the > > other one? > > > > something like: > > > > ovs-ofctl add-flow br0 priority=10,in_port=1,actions=CONTROLLER1:65535 > > ovs-ofctl add-flow br0 priority=10,in_port=2,actions=CONTROLLER2:65535 > > Yes. Use "id=controller-id" on the controller action. See ovs-ofctl(8) > for more information. > ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] How do I push data from Open vSwitch to connected controllers?
On Wed, 4 Jan 2017 10:43:58 +1100 Dzuy Phamwrote: > I am currently gathering the statistics live and want the switch to push > them to the controller when a threshold has been met. Interesting, well perhaps you could change connmgr_run() which manages all connections to issue the stats reply when it is convenient? connmgr_run(struct connmgr *mgr, void (*handle_openflow)(struct ofconn *, const struct ofpbuf *ofp_msg)) [...] LIST_FOR_EACH_SAFE (ofconn, next_ofconn, node, >all_conns) { ofconn_run(ofconn, handle_openflow); } [...] you might need to change connmgr_wait() as well to wake up properly. That's where I would start looking at :) Flavio > > On Tue, Jan 3, 2017 at 1:45 PM, Gmail wrote: > > > I am currently gathering the statistics live and want to push them only > > when a threshold has been met. > > > > > > On 3/01/2017 2:46 AM, Flavio Leitner wrote: > > > >> May I ask why you don't want the controller to issue a Request? > >> > > > > -- Flavio ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] Looking for good examples of conntrack / NAT in openvswitch
On 4 January 2017 at 10:48, Joo Yong-Seokwrote: > Thanks... there are good examples But, I am very beginner and if I can > get some explanation of all these or if there is any good tutorial for > D-NAT / conntrack, it would be great > I am not aware of any. One needs to be comfortable with OVS and ovs-ofctl to understand most of these. You can also read 'man ovs-ofctl' to read about more details around 'ct' action. > > Best regards > > - yongseok > > On Wed, Jan 4, 2017 at 8:42 AM, Guru Shetty wrote: > >> >> >> On 4 January 2017 at 08:37, Joo Yong-Seok wrote: >> >>> Happy New Year! >>> >>> I am urgently looking for the conntrack / NAT flow examples - anything >>> would be good and I googled it but other than manual page - I didn't see >>> many things - I specially want to find some D-NAT implementation with >>> conntrack and NAT flows. >>> >> >> Have a look at the examples here: tests/system-traffic.at >> >> >> >>> >>> Could you share your examples? or let me know any useful web site for >>> this? >>> >>> I am not using any controllers and want to configure it by using >>> ovs-ofctl command. >>> >>> Best regards, >>> >>> - yongseok >>> >>> ___ >>> 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] Looking for good examples of conntrack / NAT in openvswitch
Thanks... there are good examples But, I am very beginner and if I can get some explanation of all these or if there is any good tutorial for D-NAT / conntrack, it would be great Best regards - yongseok On Wed, Jan 4, 2017 at 8:42 AM, Guru Shettywrote: > > > On 4 January 2017 at 08:37, Joo Yong-Seok wrote: > >> Happy New Year! >> >> I am urgently looking for the conntrack / NAT flow examples - anything >> would be good and I googled it but other than manual page - I didn't see >> many things - I specially want to find some D-NAT implementation with >> conntrack and NAT flows. >> > > Have a look at the examples here: tests/system-traffic.at > > > >> >> Could you share your examples? or let me know any useful web site for >> this? >> >> I am not using any controllers and want to configure it by using >> ovs-ofctl command. >> >> Best regards, >> >> - yongseok >> >> ___ >> 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] ovs-vsctl using ovsdb-client
On Sat, Dec 31, 2016 at 06:41:17PM +0530, Shravan S K wrote: > How the functionality provided by ovs-vsctl can be achieved using > ovsdb-client commands ? > > For example, to create a bridge and add a port using ovs-vsctl, we can use > $ ovs-vsctl add bridge br0 > $ ovs-vsctl add-port br0 port0 > How to do these using ovsdb-client ? > > I went through the doc > http://openvswitch.org/support/dist-docs-2.5/ovsdb-client.1.pdf Should we > use the transact command ? (I know basic database stuff) If so, can you > please give an example of how to do it or suggest some useful > resources/tutorials available online ? You might want to run ovs-vsctl with -vjsonrpc to look at how ovs-vsctl implements its commands. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Register one OVS bridge to 2 unrelated controllers...
Can you register one OVS bridge to 2 separate controllers and then, using flow's, send some traffic to one controller and send some traffic to the other one? something like: ovs-ofctl add-flow br0 priority=10,in_port=1,actions=CONTROLLER1:65535 ovs-ofctl add-flow br0 priority=10,in_port=2,actions=CONTROLLER2:65535 ? Thanks in advance! ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] does openvswitch leverage the linux qdisc?
On Wed, Jan 04, 2017 at 09:24:57PM +0800, Shiyao Ma wrote: > I am noob to openvswitch, but I guess as a `switch', it somehow has some > qdisc on its queue (that is connected to the out port). > > Linux provides different qdisc for traffic shaping, like htb, red. > > My question is, does openvswitch take use of the linux qdisc? I mean the code > reside under https://github.com/torvalds/linux/tree/master/net/sched OVS sends and receives packets through network devices, which have their own qdiscs, and therefore it uses those qdiscs. > Also, in the openvswitch code base, what's the related c file for > implementing qdisc? There is none, because OVS doesn't implement its own qdiscs. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] does openvswitch leverage the linux qdisc?
Hi, I am noob to openvswitch, but I guess as a `switch', it somehow has some qdisc on its queue (that is connected to the out port). Linux provides different qdisc for traffic shaping, like htb, red. My question is, does openvswitch take use of the linux qdisc? I mean the code reside under https://github.com/torvalds/linux/tree/master/net/sched Also, in the openvswitch code base, what's the related c file for implementing qdisc? Thanks. Regards. ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss