Hi Ben, According Open vSwitch Manual: "ovs-vswitchd can perform all configured bridging and switching locally, or it can be configured to communicate with one or more external Open‐Flow controllers. The switch is typically configured to connect to a "primary controller" that takes charge of the bridge's flow table to implement a network policy. In addition, the switch can be configured to listen to connections from "service controllers". Service controllers are typically used for occasional support and maintenance, e.g. with ovs-ofctl."
So what I think that instead of "ovs-ofctl table-mod" to use an OFPMP_TABLE_DESC request to obtain the current configuration, then modify it according to the user's request, "ovs-vswitchd" should query and store the current table-configuration and modify it with user's request, as in this case both "primary controller" and "service controller" will be taken into consideration. If the query for the current configuration is sent from "ovs-ofctl", then only service controller will take the existing configuration into consideration and in that case table-mod message from other primary/open-flow controllers will overwrite/affect other properties that user didn't request. In other words, say for example there are 2 openflow controllers connected to switch, first controller through mod-table set Eviction for a table on switch and second controller sends the table-mod request for vacancy-events for the same table, in that case, the previously configured Eviction mechanism will get off and only vacancy events will be set for that table, which is not the desired action. So I think it will be good that "ovs-vswitchd" should query and store the current table-configuration and modify it with controllers request Please correct me if my understanding is wrong. Thanks and Regards, Saloni Jain Tata Consultancy Services Mailto: saloni.j...@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Consulting ____________________________________________ -----Ben Pfaff <b...@nicira.com> wrote: ----- To: Saloni Jain <saloni.j...@tcs.com> From: Ben Pfaff <b...@nicira.com> Date: 07/16/2015 05:50AM Cc: dev@openvswitch.org, Deepankar Gupta <deepankar.gu...@tcs.com>, Partha Datta <partha.da...@tcs.com> Subject: Re: [ovs-dev] ovs-ofctl mod-table commands supporting OF1.4 Eviction and Vacancy-Events On Tue, Jul 14, 2015 at 05:51:50PM +0530, Saloni Jain wrote: > In addition to my previous response, please suggest if "vswitchd" > should query and get the current stored table-configurartion > using query_tables_desc() and then modify table-config properties > according to user's request. I don't understand the question. Do you mean ovs-ofctl instead of vswitchd? =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev