commit | 9c2a09809a0436e8130c57a14b41e8112eb01fe4 | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Thu Mar 16 15:07:06 2017 +0900 |
committer | Jonathan Hart <jono@onlab.us> | Tue Mar 21 09:05:20 2017 -0700 |
tree | e4d6eb30101dc20b47adeb10d7fd9042b326ed37 | |
parent | 96207313e56899d03ea65e7f094aea37d7e1cbe9 [diff] |
CORD-982 Handle PORT_REMOVED event PORT_REMOVED is triggered instead of PORT_UPDATE when OVS port is removed since ONOS-1.9 Change-Id: I4a15fce65653147b54f6b3eea2c7103b4275ed6b
diff --git a/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java b/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java index 5180480..97f5f77 100644 --- a/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java +++ b/src/main/java/org/opencord/cordvtn/impl/CordVtnNodeManager.java
@@ -818,6 +818,14 @@ }); } break; + case PORT_REMOVED: + eventExecutor.execute(() -> { + log.info("Port {} is removed from {}", + event.port().annotations().value(PORT_NAME), + event.subject().id()); + bridgeHandler.portRemoved(event.port()); + }); + break; case DEVICE_ADDED: case DEVICE_AVAILABILITY_CHANGED: if (deviceService.isAvailable(device.id())) {