mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-06 04:36:17 +02:00
Fix NPE in DhcpRelayManager
Change-Id: Iad6d266e314ad4d03a5e78d8d7b9780f0e904f70
This commit is contained in:
parent
bb86b78a34
commit
a5b5b9cfdf
@ -669,6 +669,11 @@ public class DhcpRelayManager implements DhcpRelayService {
|
||||
|
||||
private void deviceAdd(DeviceId deviceId) {
|
||||
IgnoreDhcpConfig config = cfgService.getConfig(appId, IgnoreDhcpConfig.class);
|
||||
if (config == null) {
|
||||
log.debug("No ignoreVlan config found for {}. Do nothing.", deviceId);
|
||||
return;
|
||||
}
|
||||
|
||||
Collection<VlanId> vlanIds = config.ignoredVlans().get(deviceId);
|
||||
vlanIds.forEach(vlanId -> {
|
||||
processIgnoreVlanRule(deviceId, vlanId, ADD);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user