I didn't ask for any mode in purpose I used the commands below to initialize OVS. Nevertheless, I do like the fact that flows are getting deleted, I just think that meters should be deleted as well.
ovsdb-server --remote=punix:/var/run/openvswitch/db.sock --pidfile --detach ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock add-br dut2 ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock set bridge dut2 protocols=OpenFlow13,OpenFlow10 ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock set bridge dut2 other-config:datapath-id=3af8da2db7b3962c ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock add-port dut2 dut2.1 -- set Interface dut2.1 ofport_request=1 ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock add-port dut2 dut2.2 -- set Interface dut2.2 ofport_request=2 ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock add-port dut2 dut2.4 -- set Interface dut2.4 ofport_request=4 ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock set-controller dut2 tcp:194.90.136.55:6633 ovs-vsctl --no-wait --db=unix:/var/run/openvswitch/db.sock set controller dut2 connection-mode=out-of-band ovs-vswitchd unix:/var/run/openvswitch/db.sock --pidfile --detach Thanks, Gur -----Original Message----- From: Ben Pfaff [mailto:b...@nicira.com] Sent: Tuesday, September 23, 2014 17:50 To: Gur Stavi Cc: discuss@openvswitch.org Subject: Re: [ovs-discuss] Meter IDs and meter cleanup on disconnect So you enabled fail-open mode then? You asked for it to do that. If you don't want that behavior turn it off. On Tue, Sep 23, 2014 at 12:26:47PM +0000, Gur Stavi wrote: > Hi Ben, > > This is the back trace I see in the debugger on connection loss with the > controller: > > ofproto_flush_flows > fail_open_run > connmgr_run > ofproto_run > > Later during ofproto_run, ofproto_flush__ is called and actually deletes the > rules from ofproto. > So it seems to me that OVS does delete flows when it loses connection to the > controller. Am I missing something? > > Thanks, > Gur > > -----Original Message----- > From: Ben Pfaff [mailto:b...@nicira.com] > Sent: Monday, September 22, 2014 20:08 > To: Gur Stavi > Cc: discuss@openvswitch.org > Subject: Re: [ovs-discuss] Meter IDs and meter cleanup on disconnect > > On Sun, Sep 21, 2014 at 05:33:36AM +0000, Gur Stavi wrote: > > I have 2 questions about meters: > > > > If OVS loses connection to controller it delete active flows > > No, it doesn't. > > > but does not delete active meters. Shouldn't meters be deleted as > > well. > > How are you adding meters? The FAQ says: > > Q: Does Open vSwitch support OpenFlow meters? > > A: Since version 2.0, Open vSwitch has OpenFlow protocol support for > OpenFlow meters. There is no implementation of meters in the Open > vSwitch software switch (neither the kernel-based nor userspace > switches). > > > Meters are stored in an array in ofproto where meter_id is used as an index > > into the array. > > The datapath need to pre-declare the array size using max_meters during a > > call to meter_get_features. > > This puts a hard limit on the range of Meter IDs 0-max_meters. > > It may be very convenient to the controller to have freedom in the > > selection of meter_id 32 bits in order to easily associate flows to meters. > > This is not an Open vSwitch restriction. It comes straight from the OpenFlow > specification: "Meters are defined starting with meter_id=1 up to the maximum > number of meters that the switch can support." > > > For example: if the bridge states that max_meters=4 the controller may want > > to select meter-ids as a function of vlan: 1000, 1200, 1560, 3420. > > Is it possible to change meters in ofproto from an array into hash? > > Only if you change OpenFlow first. > [E-Banner]<http://www.mrv.com/products/optidriver> > > > The contents of this message, together with any attachments, are intended > only for the use of the person(s) to whom they are addressed and may contain > confidential and/or privileged information. If you are not the intended > recipient, immediately advise the sender, delete this message and any > attachments and note that any distribution, or copying of this message, or > any attachment, is prohibited. [E-Banner]<http://www.mrv.com/products/optidriver> The contents of this message, together with any attachments, are intended only for the use of the person(s) to whom they are addressed and may contain confidential and/or privileged information. If you are not the intended recipient, immediately advise the sender, delete this message and any attachments and note that any distribution, or copying of this message, or any attachment, is prohibited. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss