CLOUDSTACK-6505: XenServer bridge for the OVS tunnel network gets reset

on the hosts in the xenserver cluster

this fix ensures that brige is created only once so that openflow rules
configured on the bridge are not lost.
This commit is contained in:
Murali Reddy 2014-04-25 14:36:31 +05:30
parent 771abe4286
commit 8e4391bff3

View File

@ -936,14 +936,13 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
synchronized (_tmpDom0Vif) {
_tmpDom0Vif.add(dom0vif);
}
try {
dom0vif.plug(conn);
} catch (Exception e) {
// though an exception is thrown here, VIF actually gets plugged-in to dom0, so just ignore the exception
}
dom0vif.unplug(conn);
}
// At this stage we surely have a VIF
try {
dom0vif.plug(conn);
} catch (Exception e) {
// though an exception is thrown here, VIF actually gets plugged-in to dom0, so just ignore the exception
}
dom0vif.unplug(conn);
}
private synchronized Network setupvSwitchNetwork(Connection conn) {