Skip to content

Commit 90cd64c

Browse files
committed
BigSwitch should only respond if it is the actual provider on the network.
This fixes an NPE during the release call.
1 parent 59cc382 commit 90cd64c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/network-elements/bigswitch-vns/src/com/cloud/network/element/BigSwitchVnsElement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private boolean canHandle(Network network, Service service) {
138138
if (network.getBroadcastDomainType() != BroadcastDomainType.Lswitch) {
139139
return false;
140140
}
141-
/*
141+
142142
if (!_networkModel.isProviderForNetwork(getProvider(),
143143
network.getId())) {
144144
s_logger.debug("BigSwitchVnsElement is not a provider for network "
@@ -153,7 +153,7 @@ private boolean canHandle(Network network, Service service) {
153153
+ network.getDisplayText());
154154
return false;
155155
}
156-
*/
156+
157157
return true;
158158
}
159159

0 commit comments

Comments
 (0)