import java.net.InetSocketAddress;
import org.kohsuke.MetaInfServices;
import org.opendaylight.protocol.pcep.PCEPCapability;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.ietf.stateful.app.config.rev160707.StatefulCapabilities;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.ietf.initiated.rev200720.Stateful1Builder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.ietf.stateful.config.rev230115.StatefulCapabilities;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.ietf.stateful.rev200720.Tlvs1Builder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.ietf.stateful.rev200720.stateful.capability.tlv.StatefulBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.open.object.open.TlvsBuilder;
public void setCapabilityProposal(final InetSocketAddress address, final TlvsBuilder builder) {
if (stateful) {
builder.addAugmentation(new Tlvs1Builder()
- .setStateful(new StatefulBuilder().setLspUpdateCapability(active)
- .addAugmentation(new Stateful1Builder().setInitiation(initiated).build())
- .addAugmentation(new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller
- .pcep.sync.optimizations.rev200720.Stateful1Builder()
- .setTriggeredInitialSync(triggeredSync)
- .setTriggeredResync(triggeredResync)
- .setDeltaLspSyncCapability(deltaLspSync)
- .setIncludeDbVersion(includeDbVersion)
- .build())
- .build())
- .build());
+ .setStateful(new StatefulBuilder().setLspUpdateCapability(active)
+ .addAugmentation(new Stateful1Builder().setInitiation(initiated).build())
+ .addAugmentation(new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller
+ .pcep.sync.optimizations.rev200720.Stateful1Builder()
+ .setTriggeredInitialSync(triggeredSync)
+ .setTriggeredResync(triggeredResync)
+ .setDeltaLspSyncCapability(deltaLspSync)
+ .setIncludeDbVersion(includeDbVersion)
+ .build())
+ .build())
+ .build());
}
}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2016 Brocade Communications Systems, Inc. and others. All rights reserved.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
- <!-- Capabilities -->
-
- <odl:clustered-app-config id="statefulCapabilityConfig"
- binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.ietf.stateful.app.config.rev160707.PcepIetfStatefulConfig"/>
-
- <bean id="statefulCapability" class="org.opendaylight.protocol.pcep.ietf.stateful.PCEPStatefulCapability">
- <argument ref="statefulCapabilityConfig"/>
- </bean>
-
- <service ref="statefulCapability" interface="org.opendaylight.protocol.pcep.PCEPCapability"
- odl:type="org.opendaylight.protocol.pcep.ietf.stateful.PCEPStatefulCapability"/>
-
-</blueprint>
+++ /dev/null
-module pcep-ietf-stateful-app-config {
- yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:ietf-stateful-app-config";
- prefix "pcep-ietf-stateful-app-config";
-
- description
- "Configuration for the PCEP IETF stateful extension.";
-
- revision "2016-07-07" {
- description
- "Initial revision.
-
- Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
-
- This program and the accompanying materials are made available
- under the terms of the Eclipse Public License v1.0 which
- accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html";
- }
-
- grouping stateful-capabilities {
- leaf initiated {
- type boolean;
- default true;
- }
-
- leaf stateful {
- type boolean;
- default true;
- }
-
- leaf active {
- type boolean;
- default true;
- }
-
- leaf triggered-initial-sync {
- type boolean;
- default true;
- }
-
- leaf delta-lsp-sync-capability {
- type boolean;
- default true;
- }
-
- leaf triggered-resync {
- type boolean;
- default true;
- }
-
- leaf include-db-version {
- type boolean;
- default true;
- }
- }
-
- container pcep-ietf-stateful-config {
- uses stateful-capabilities;
- }
-}
\ No newline at end of file
--- /dev/null
+module odl-pcep-ietf-stateful-config {
+ namespace "urn:opendaylight:params:xml:ns:yang:pcep:ietf-stateful-config";
+ prefix "opisc";
+
+ description
+ "Configuration for the PCEP IETF stateful extension.
+
+ Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
+ Copyright (c) 2023 PANTHEON.tech, s.r.o.
+
+ This program and the accompanying materials are made available
+ under the terms of the Eclipse Public License v1.0 which
+ accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html";
+
+ revision "2023-01-15" {
+ description "Revision of pcep-ietf-stateful-app-config without datastore anchor";
+ }
+
+ grouping stateful-capabilities {
+ leaf initiated {
+ type boolean;
+ default true;
+ }
+
+ leaf stateful {
+ type boolean;
+ default true;
+ }
+
+ leaf active {
+ type boolean;
+ default true;
+ }
+
+ leaf triggered-initial-sync {
+ type boolean;
+ default true;
+ }
+
+ leaf delta-lsp-sync-capability {
+ type boolean;
+ default true;
+ }
+
+ leaf triggered-resync {
+ type boolean;
+ default true;
+ }
+
+ leaf include-db-version {
+ type boolean;
+ default true;
+ }
+ }
+}
import network-topology { prefix nt; }
import network-topology-pcep { prefix pn; }
- import pcep-ietf-stateful-app-config { prefix opisc; }
+ import odl-pcep-ietf-stateful-config { prefix opisc; }
description
"This module contains the base YANG definitions for configuring