[ovs-git] Open vSwitch: ovs-xapi-sync: Cache the bridge-id value for non nicira-bridge-id too. (branch-1.11)

dev at openvswitch.org dev at openvswitch.org
Wed Jun 19 15:39:56 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, branch-1.11 has been updated
       via  9b5e5bb8e48affe55ca58f23f36d569f5ae70354 (commit)
      from  aa18a19397bd59ac19d62fbb5a84e5c15d227963 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9b5e5bb8e48affe55ca58f23f36d569f5ae70354
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=9b5e5bb8e48affe55ca58f23f36d569f5ae70354
Author: Gurucharan Shetty <gshetty at nicira.com>
		
ovs-xapi-sync: Cache the bridge-id value for non nicira-bridge-id too.
		
Currently we connect to xapi in case there are multiple
external_ids:xs-network-uuids to get the single bridge id everytime
we have a change in the database for all the interested columns in
ovs-xapi-sync. The xs-network-uuids value can also change whenever
new VLANs are added or deleted, which is a common use case. The
disadvantage with this approach is that we query XAPI more often
and set the bridge-id as "" if we don't get a valid response for
our query. This can take down the logical connectivity for all the
VMs on that xenserver.

Instead of looking at the PIF records for all the xs-network-uuids,
we can instead just look at the xapi record which has the same bridge
name as the OVS bridge name and then cache its uuid. This value will
hold true till the OVS bridge is recreated in which case we will re-read
the value.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 .../usr_share_openvswitch_scripts_ovs-xapi-sync    |   45 ++++++--------------
 1 file changed, 14 insertions(+), 31 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list