ovs-xapi-sync: Handle multiple xs-network-uuids for xs 6.1.
authorGurucharan Shetty <gshetty@nicira.com>
Sun, 19 May 2013 07:05:09 +0000 (00:05 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 20 May 2013 14:37:21 +0000 (07:37 -0700)
commit19af927238fbeaa664c504dab565e9b8c85cb8b4
treea8ca785d4e28cd6752067eae7f1b1d5da0c2ba90
parent7c54c27f204ac9c7870ffab81aeba4d02336553a
ovs-xapi-sync: Handle multiple xs-network-uuids for xs 6.1.

For xenservers with version less than 6.1, interface reconfiguration
happened through interface-reconfigure scripts in this repo. In cases
where there were multiple xs-network-uuids for a single bridge,
interface-reconfigure script would add the network uuid associated
with the non-VLAN network as the first record. ovs-xapi-sync would
just blindly use the first record to create the bridge-id

But it looks like for xenserver 6.1, interface-reconfigure script
is no longer used and xenserver natively writes the xs-network-uuids.
So, in ovs-xapi-sync we no longer can copy the first value in
xs-network-uuids as bridge-id. This commit fetches the PIF record
for each xs-network-uuids and the network that does not have a VLAN
associated with it is copied over to bridge-id.

Bug #17090.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync