Hyunsun Moon
Committed by Gerrit Code Review

Fixed not to load network config at system activation

Change-Id: I7a6a53724c1983b4a887e30880898746982c1682
......@@ -72,8 +72,6 @@ public class CordVtnConfigManager {
configService.addListener(configListener);
configRegistry.registerConfigFactory(configFactory);
readConfiguration();
}
@Deactivate
......@@ -101,7 +99,22 @@ public class CordVtnConfigManager {
@Override
public void event(NetworkConfigEvent event) {
if (!event.configClass().equals(CordVtnConfig.class)) {
return;
}
switch (event.type()) {
case CONFIG_ADDED:
log.info("Network configuration added");
readConfiguration();
break;
case CONFIG_UPDATED:
log.info("Network configuration updated");
// TODO handle update event
break;
default:
break;
}
}
}
}
......