NeutronL3Adapter.processEvent() can be called before its initialization
The security group process should be after enabled check.
Change-Id: I7fc48a70cacca5a9a1d7a017476259543c8a0086
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
LOG.error("Unable to process abstract event " + abstractEvent);
return;
}
+ if (!this.enabled) {
+ return;
+ }
+
NeutronL3AdapterEvent ev = (NeutronL3AdapterEvent) abstractEvent;
switch (ev.getAction()) {
case UPDATE:
public void handleNeutronPortEvent(final NeutronPort neutronPort, Action action) {
LOG.debug("Neutron port {} event : {}", action, neutronPort.toString());
- this.processSecurityGroupUpdate(neutronPort);
if (!this.enabled) {
return;
}
+ this.processSecurityGroupUpdate(neutronPort);
final boolean isDelete = action == Action.DELETE;