BigSwitch should only respond if it is the actual provider on the network.

This fixes an NPE during the release call.
This commit is contained in:
Hugo Trippaers 2013-05-03 14:03:53 +02:00
parent 59cc382f20
commit 90cd64cf53
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ public class BigSwitchVnsElement extends AdapterBase implements
if (network.getBroadcastDomainType() != BroadcastDomainType.Lswitch) {
return false;
}
/*
if (!_networkModel.isProviderForNetwork(getProvider(),
network.getId())) {
s_logger.debug("BigSwitchVnsElement is not a provider for network "
@ -153,7 +153,7 @@ public class BigSwitchVnsElement extends AdapterBase implements
+ network.getDisplayText());
return false;
}
*/
return true;
}