Route Constrain policies
[bgpcep.git] / bgp / openconfig-rp-spi / src / main / java / org / opendaylight / protocol / bgp / openconfig / routing / policy / spi / registry / ConditionsRegistryImpl.java
index 7e96d1d2e3a1b8ae56077b94e0a73c7f0cb4114c..74dfc8ce809b54300fa27b2213bc98f18dd17fee 100644 (file)
@@ -92,7 +92,7 @@ final class ConditionsRegistryImpl {
                 if (handler == null) {
                     continue;
                 }
-                if (!handler.matchExportCondition(entryInfo, routeEntryExportParameters,
+                if (!handler.matchExportCondition(afiSafi, entryInfo, routeEntryExportParameters,
                         handler.getConditionParameter(attributes), entry.getValue())) {
                     return false;
                 }
@@ -121,7 +121,7 @@ final class ConditionsRegistryImpl {
                 final ConditionsAugPolicy handler = this.conditionsRegistry.get(entry.getKey());
                 if (handler != null) {
                     final Augmentation<Conditions> conditionConfig = (Augmentation<Conditions>) entry.getValue();
-                    if (!handler.matchImportCondition(entryInfo, routeEntryImportParameters,
+                    if (!handler.matchImportCondition(afiSafi, entryInfo, routeEntryImportParameters,
                             handler.getConditionParameter(attributes), conditionConfig)) {
                         return false;
                     }