Enabling default route
Change-Id: I908a55c72bda2d67d81bb7f9bffd9e70dec5b6cc
diff --git a/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java b/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java
index cadca75..20c2b3d 100644
--- a/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java
+++ b/drivers/default/src/main/java/org/onosproject/driver/pipeline/Ofdpa2Pipeline.java
@@ -885,17 +885,13 @@
log.warn("IPv6 Multicast is currently not supported");
fail(fwd, ObjectiveError.BADPARAMS);
return -1;
- } else {
- if (ipv6Dst.prefixLength() == 0) {
- log.warn("Default ipv6 route is currently not supported");
- fail(fwd, ObjectiveError.BADPARAMS);
- return -1;
- } else {
- builderToUpdate.matchEthType(Ethernet.TYPE_IPV6).matchIPv6Dst(ipv6Dst);
- }
- log.debug("processing IPv6 unicast specific forwarding objective {} -> next:{}"
- + " in dev:{}", fwd.id(), fwd.nextId(), deviceId);
}
+ if (ipv6Dst.prefixLength() != 0) {
+ builderToUpdate.matchIPv6Dst(ipv6Dst);
+ }
+ builderToUpdate.matchEthType(Ethernet.TYPE_IPV6);
+ log.debug("processing IPv6 unicast specific forwarding objective {} -> next:{}"
+ + " in dev:{}", fwd.id(), fwd.nextId(), deviceId);
return 0;
}