PCEP Entity Identifier configurable
[bgpcep.git] / pcep / topology / topology-provider / src / main / java / org / opendaylight / bgpcep / pcep / topology / provider / config / PCEPTopologyConfiguration.java
index 3f3fa031457ff117444db79c23214569fb6df78d..24da2b33bb2a3c7e0f1d0522428023437d088f96 100644 (file)
@@ -13,6 +13,7 @@ import java.net.InetSocketAddress;
 import javax.annotation.Nonnull;
 import org.opendaylight.bgpcep.programming.spi.InstructionScheduler;
 import org.opendaylight.protocol.concepts.KeyMapping;
+import org.opendaylight.protocol.pcep.SpeakerIdMapping;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NetworkTopology;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology;
@@ -25,16 +26,19 @@ public final class PCEPTopologyConfiguration {
     private final InstructionScheduler scheduler;
     private final TopologyId topologyId;
     private final short rpcTimeout;
+    private final SpeakerIdMapping speakerIds;
     private final InstanceIdentifier<Topology> topology;
 
     public PCEPTopologyConfiguration(
             @Nonnull final InetSocketAddress address,
             @Nonnull final KeyMapping keys,
+            @Nonnull final SpeakerIdMapping speakerIds,
             @Nonnull final InstructionScheduler scheduler,
             @Nonnull final TopologyId topologyId,
             final short rpcTimeout) {
         this.address = checkNotNull(address);
         this.keys = checkNotNull(keys);
+        this.speakerIds = checkNotNull(speakerIds);
         this.scheduler = checkNotNull(scheduler);
         this.topologyId = checkNotNull(topologyId);
         this.rpcTimeout = rpcTimeout;
@@ -70,4 +74,9 @@ public final class PCEPTopologyConfiguration {
     public KeyMapping getKeys() {
         return this.keys;
     }
+
+    @Nonnull
+    public SpeakerIdMapping getSpeakerIds() {
+        return this.speakerIds;
+    }
 }