commit | 9b80fba7430897adbdcbd2482aaf5fd995c7fd3f | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Thu Feb 01 17:40:39 2018 -0800 |
committer | Ray Milkey <ray@opennetworking.org> | Fri Feb 02 21:18:57 2018 +0000 |
tree | 097899195ae0d258615ef5381220113fb235525e | |
parent | 6f31b3c0d7ae052a7f094b6fb0123cfc4c6b51c2 [diff] |
SONAR suggestion - checking the same condition twice Change-Id: Ia71206478c21cc92fbd7d37e7915af75727e047e
diff --git a/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java b/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java index 18fc738..feb0049 100644 --- a/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java +++ b/src/main/java/org/onosproject/segmentrouting/config/PwaasConfig.java
@@ -215,8 +215,8 @@ if ((!ingressInner.equals(VlanId.NONE) && ingressOuter.equals(VlanId.NONE) && !egressOuter.equals(VlanId.NONE)) - || (!ingressOuter.equals(VlanId.NONE) && - egressOuter.equals(VlanId.NONE) && + || (egressOuter.equals(VlanId.NONE) && + !egressInner.equals(VlanId.NONE) && !ingressOuter.equals(VlanId.NONE))) { throw new IllegalArgumentException(String.valueOf(String.format("Support for double-tag<->" + "single-tag is not supported" +