Fixed not to load network config at system activation

Change-Id: I7a6a53724c1983b4a887e30880898746982c1682
diff --git a/src/main/java/org/onosproject/cordvtn/CordVtnConfigManager.java b/src/main/java/org/onosproject/cordvtn/CordVtnConfigManager.java
index 287f2a3..4f9c58a 100644
--- a/src/main/java/org/onosproject/cordvtn/CordVtnConfigManager.java
+++ b/src/main/java/org/onosproject/cordvtn/CordVtnConfigManager.java
@@ -72,8 +72,6 @@
 
         configService.addListener(configListener);
         configRegistry.registerConfigFactory(configFactory);
-
-        readConfiguration();
     }
 
     @Deactivate
@@ -101,7 +99,22 @@
 
         @Override
         public void event(NetworkConfigEvent event) {
-            // TODO handle update 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;
+            }
         }
     }
 }