Fixed VTN fails to reinstall flow rules for a restarted VM

Change-Id: Ibd559091a366f8eff6b854cb88055728045b34d4
diff --git a/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java b/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java
index eb22f8e..0fb9772 100644
--- a/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java
+++ b/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java
@@ -805,11 +805,18 @@
                     });
                     break;
                 case PORT_UPDATED:
-                    if (!event.port().isEnabled()) {
+                    if (event.port().isEnabled()) {
+                        eventExecutor.execute(() -> {
+                            log.info("Port {} is added to {}",
+                                    event.port().annotations().value(PORT_NAME),
+                                    event.subject().id());
+                            bridgeHandler.portAdded(event.port());
+                        });
+                    } else {
                         eventExecutor.execute(() -> {
                             log.info("Port {} is removed from {}",
-                                     event.port().annotations().value(PORT_NAME),
-                                     event.subject().id());
+                                    event.port().annotations().value(PORT_NAME),
+                                    event.subject().id());
                             bridgeHandler.portRemoved(event.port());
                         });
                     }