Configure draft versions

There are already two extensions for PCEP: draft-ietf-pce-stateful-pce - in versions 02 and 07 draft-ietf-pce-pce-initiated-lsp - versions crabbe-initiated-00 and ietf-initiated-00.

[Note]Note

It is important to load the extensions with compatible versions because they extend each other. In this case crabbe-initiated-00 is compatible with stateful-02 and ietf-initiated-00 is compatible with stateful-07. Default configuration is to use newest versions of the drafts.

Complete the following steps in order to get stateful02 PCEP connection running and synchronized.

To use older version: . Switch commented code to ignore stateful-7 and ietf-initiated-00 versions in 32-pcep.xml:

 <!-- This block is draft-ietf-pce-stateful-pce-07 + draft-ietf-pce-inititated-pce-00 -->
 <!--extension>
  <type>pcepspi:extension</type>
  <name>pcep-parser-ietf-stateful07</name>
 </extension>
 <extension>
  <type>pcepspi:extension</type>
  <name>pcep-parser-ietf-initiated00</name>
 </extension-->
 <!-- This block is draft-ietf-pce-stateful-pce-02 + draft-crabbe-pce-inititated-pce-00 -->
<extension>
 <type xmlns:pcepspi="urn:opendaylight:params:xml:ns:yang:controller:pcep:spi">
   pcepspi:extension
 </type>
 <name>pcep-parser-ietf-stateful02</name>
</extension>
<extension>
 <type xmlns:pcepspi="urn:opendaylight:params:xml:ns:yang:controller:pcep:spi">
  pcepspi:extension
 </type>
 <name>pcep-parser-crabbe-initiated00</name>
</extension>
  1. In the same file, make sure the proposal matches your chosen draft version. Change stateful07-proposal to stateful02-proposal:
<pcep-session-proposal-factory>
    <type>pcep:pcep-session-proposal-factory</type>
    <name>stateful02-proposal</name>
</pcep-session-proposal-factory>
  1. In 39-pcep-provider.xml, stateful-plugin also needs to match. Change stateful07 to stateful02:

    <stateful-plugin>
        <type>prefix:pcep-topology-stateful</type>
        <name>stateful02</name>
    </stateful-plugin>

loading table of contents...