Remove sr-capable leaf
[bgpcep.git] / pcep / segment-routing / src / main / java / org / opendaylight / protocol / pcep / segment / routing / SegmentRoutingActivator.java
index b34fcb2cf93d083feec83966ae8d9835251a87e9..6d056a46fe87c1c01756ed2fc0c1e6525f592c56 100644 (file)
@@ -15,6 +15,7 @@ import org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderActivator;
 import org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderContext;
 import org.opendaylight.protocol.pcep.spi.TlvRegistry;
 import org.opendaylight.protocol.pcep.spi.VendorInformationTlvRegistry;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.segment.routing.app.config.rev230115.PcepSegmentRoutingConfig;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720.add.lsp.input.arguments.ero.subobject.subobject.type.SrEroType;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720.add.lsp.input.arguments.rro.subobject.subobject.type.SrRroType;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720.sr.pce.capability.tlv.SrPceCapability;
@@ -31,6 +32,11 @@ public class SegmentRoutingActivator implements PCEPExtensionProviderActivator {
         ianaSrSubobjectsType = true;
     }
 
+    @Deprecated
+    public SegmentRoutingActivator(final PcepSegmentRoutingConfig config) {
+        this(config.requireIanaSrSubobjectsType());
+    }
+
     @Deprecated
     public SegmentRoutingActivator(final boolean ianaSrSubobjectsType) {
         this.ianaSrSubobjectsType = ianaSrSubobjectsType;