Eliminate PCEPDispatcher.getPCEPSessionNegotiatorFactory()
[bgpcep.git] / pcep / topology / topology-provider / src / main / java / org / opendaylight / bgpcep / pcep / topology / provider / PCEPTopologyProvider.java
index 01d65ddae05ce8981f3e37670bab11a09c43a8c2..dc226d5fe78868688031cb3fd7542983399d33bc 100644 (file)
@@ -96,7 +96,7 @@ final class PCEPTopologyProvider extends DefaultTopologyReference {
 
     synchronized void updateConfiguration(final @Nullable PCEPTopologyConfiguration newConfiguration) {
         // FIXME: BGPCEP-960: this check should be a one-time thing in PCEPTopologyTracker startup once we have OSGi DS
-        final var effectiveConfig = dependencies.getPCEPDispatcher().getPCEPSessionNegotiatorFactory()
+        final var effectiveConfig = dependencies.getPCEPSessionNegotiatorFactory()
             .getPCEPSessionProposalFactory().getCapabilities().stream()
             .anyMatch(PCEPCapability::isStateful) ? newConfiguration : null;