BGPCEP-740: Fix logic for MED comparison in BGP best path selection
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / spi / AbstractBestPathSelector.java
index 84e2546e546fa28ce0dcda5c844e3c206d439b85..c7062bcf26148116551d96f29103b3e2995cde05 100644 (file)
@@ -111,7 +111,7 @@ public class AbstractBestPathSelector {
             if (this.bestState.getMultiExitDisc() != null || state.getMultiExitDisc() != null) {
                 final Long bmed = this.bestState.getMultiExitDisc();
                 final Long nmed = state.getMultiExitDisc();
-                return nmed > bmed;
+                return nmed >= bmed;
             }
         } else {
             /*