mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-24 05:41:01 +02:00
Fix: resolve NPE when inject non-existing compute node through SONA
Change-Id: I4b828c0c8e303bc1c27854899a5dc568a8be55cb
This commit is contained in:
parent
f7921bd74d
commit
7ddea787bc
@ -292,6 +292,9 @@ public final class OpenstackSwitchingHostProvider extends AbstractProvider imple
|
||||
public boolean isRelevant(OpenstackNodeEvent event) {
|
||||
// do not allow to proceed without mastership
|
||||
Device device = deviceService.getDevice(event.subject().intgBridge());
|
||||
if (device == null) {
|
||||
return false;
|
||||
}
|
||||
return mastershipService.isLocalMaster(device.id());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user