[Falcon] Fixed to avoid exception cases for compute node bootstrap
- Handled network config event with thread
- Considered ONOS restart situation, where node state in the store
is not the same as real state
Change-Id: Iec8c063317f1292052f299b680b7944821e60b7f
diff --git a/src/main/java/org/onosproject/cordvtn/CordVtn.java b/src/main/java/org/onosproject/cordvtn/CordVtn.java
index d56b3b6..fe196e1 100644
--- a/src/main/java/org/onosproject/cordvtn/CordVtn.java
+++ b/src/main/java/org/onosproject/cordvtn/CordVtn.java
@@ -264,13 +264,7 @@
return;
}
- NodeState state = getNodeState(node);
- if (state == null) {
- return;
- } else if (state.equals(NodeState.INCOMPLETE)) {
- state = checkNodeState(node);
- }
-
+ NodeState state = checkNodeState(node);
state.process(this, node);
}