Configure PCEP segment routing

draft-sivabalan-pce-segment-routing-02 PCEP extension for Segment Routing

PCEP Segment Routing initial configuration: 33-pcep-segment-routing.xml

  • To use Segment Routing uncomment two commented blocks
  • Activate parsers/serializes extension:

    • Create pcep-parser-segment-routing02 instance
    • Reconfigure (inject into list of extensions) global-pcep-extensions
<module>
    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:pcep:sr02:cfg">
        prefix:pcep-parser-segment-routing02
    </type>
    <name>pcep-parser-segment-routing02</name>
</module>
<module>
    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:pcep:spi">
        prefix:pcep-extensions-impl
    </type>
    <name>global-pcep-extensions</name>
    <extension>
        <type xmlns:pcepspi="urn:opendaylight:params:xml:ns:yang:controller:pcep:spi">
            pcepspi:extension
        </type>
        <name>pcep-parser-segment-routing02</name>
    </extension>
</module>
.
.
.
<services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
    <service>
        <type xmlns:pcepspi="urn:opendaylight:params:xml:ns:yang:controller:pcep:spi">
            pcepspi:extension
        </type>
        <instance>
            <name>pcep-parser-segment-routing02</name>
            <provider>/config/modules/module[name='pcep-parser-segment-routing02']/instance[name='pcep-parser-segment-routing02']</provider>
        </instance>
    </service>
</services>
  • Advertise Segment Routing capability in Open Message:

    • Instantiate pcep-session-proposal-factory-sr02
    • Reconfigure global-pcep-dispatcher
<module>
    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:pcep:sr02:cfg">
        prefix:pcep-session-proposal-factory-sr02
    </type>
    <name>pcep-session-proposal-factory-sr02</name>
</module>
<module>
    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:pcep:impl">
        prefix:pcep-dispatcher-impl
    </type>
    <name>global-pcep-dispatcher</name>
    <pcep-session-proposal-factory>
        <type xmlns:pcep="urn:opendaylight:params:xml:ns:yang:controller:pcep">
            pcep:pcep-session-proposal-factory
        </type>
        <name>pcep-session-proposal-factory-sr02</name>
    </pcep-session-proposal-factory>
</module>
.
.
.
<services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
    <service>
        <type xmlns:pcep="urn:opendaylight:params:xml:ns:yang:controller:pcep">
            pcep:pcep-session-proposal-factory
        </type>
        <instance>
            <name>pcep-session-proposal-factory-sr02</name>
            <provider>/config/modules/module[name='pcep-session-proposal-factory-sr02']/instance[name='pcep-session-proposal-factory-sr02']</provider>
        </instance>
    </service>
</services>

loading table of contents...