commit | b3dad104870ad75de59d7fa99f55feca646e2562 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Tue Mar 01 17:42:26 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Mar 02 17:25:54 2016 +0000 |
tree | d515a3975592acd2e291c82559564c9e53a6f605 | |
parent | e0ae3fb2c8c1969bf340ea3f476d7be2bb47b7d0 [diff] |
Fixed blocking FPM deletes. Apparantly route deletes are sent with protocol UNSPEC (fpm bug?) Change-Id: Ia904149c0ee4704d604304d3296d2b9f2e780ab4
diff --git a/apps/routing/src/main/java/org/onosproject/routing/fpm/FpmManager.java b/apps/routing/src/main/java/org/onosproject/routing/fpm/FpmManager.java index 6464387..9fe70be 100644 --- a/apps/routing/src/main/java/org/onosproject/routing/fpm/FpmManager.java +++ b/apps/routing/src/main/java/org/onosproject/routing/fpm/FpmManager.java
@@ -186,7 +186,8 @@ log.trace("Received FPM message: {}", fpmMessage); } - if (rtNetlink.protocol() != RtProtocol.ZEBRA) { + if (!(rtNetlink.protocol() == RtProtocol.ZEBRA || + rtNetlink.protocol() == RtProtocol.UNSPEC)) { log.trace("Ignoring non-zebra route"); return; }