IPI-SEGMENT-ROUTING
Configure enable
Enable segment routing
Attribute Name: enable
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<config>
</enable>
</config>
</segment-routing>
Command Syntax
segment-routing
Configure adj sid absolute
This attribute is used to configure Segment Route adjacency SID absolute value
This command is supported when following feature are enabled sr mpls feature
Attribute Name: adj-sid-absolute
Attribute Type: uint32
Attribute Range: 16-1048575
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<interfaces>
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<adjacency-segment>
<config>
<adj-sid-absolute>16</adj-sid-absolute> <!-- operation="delete"-->
</config>
</adjacency-segment>
</interface>
</interfaces>
</segment-routing>
Command Syntax
adjacency-sid absolute <16-1048575>
Configure adj sid index
This attribute is used to configure Segment Route adjacency SID index-value
This command is supported when following feature are enabled sr mpls feature
Attribute Name: adj-sid-index
Attribute Type: uint32
Attribute Range: 0-1048575
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<interfaces>
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<adjacency-segment>
<config>
<adj-sid-index>0</adj-sid-index> <!-- operation="delete"-->
</config>
</adjacency-segment>
</interface>
</interfaces>
</segment-routing>
Command Syntax
adjacency-sid index <0-1048575>
Configure n flag clear
This attribute is used to set n-flag-clear
This command is supported when following feature are enabled sr mpls feature
Attribute Name: n-flag-clear
Attribute Type: enum (n-flag-clear)
Attribute Name: sid-absolute
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: exp-null
Attribute Type: enum (explicit-null|no-php)
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<interfaces>
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<prefix-segment>
<config>
<sid-absolute>16</sid-absolute> <!-- operation="delete"-->
<exp-null>explicit-null</exp-null> <!-- operation="delete"-->
<n-flag-clear>n-flag-clear</n-flag-clear> <!-- operation="delete"-->
</config>
</prefix-segment>
</interface>
</interfaces>
</segment-routing>
Command Syntax
prefix-sid absolute <16-1048575> ((explicit-null|no-php)|) ((n-flag-clear)|)
Configure name
This attribute is used to set n-flag-clear
This command is supported when following feature are enabled sr mpls feature
Attribute Name: n-flag-clear
Attribute Type: enum (n-flag-clear)
Attribute Name: sid-index
Attribute Type: uint32
Attribute Range: 0-1048575
Attribute Name: exp-null
Attribute Type: enum (explicit-null|no-php)
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<interfaces>
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<prefix-segment>
<config>
<sid-index>0</sid-index> <!-- operation="delete"-->
<exp-null>explicit-null</exp-null> <!-- operation="delete"-->
<n-flag-clear>n-flag-clear</n-flag-clear> <!-- operation="delete"-->
</config>
</prefix-segment>
</interface>
</interfaces>
</segment-routing>
Command Syntax
prefix-sid index <0-1048575> ((explicit-null|no-php)|) ((n-flag-clear)|)
Configure enable preference
preference for segment routing label over LDP
This command is supported when following feature are enabled sr mpls feature
Attribute Name: enable-preference
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<sr-mpls>
<sr-prefer-over-ldp>
<config>
</enable-preference><!-- operation="delete"-->
</config>
</sr-prefer-over-ldp>
</sr-mpls>
</segment-routing>
Command Syntax
mpls sr-prefer
Configure preference
preference for segment routing mapping server
This command is supported when following feature are enabled sr mpls feature
Attribute Name: preference
Attribute Type: uint8
Attribute Range: 1-255
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<sr-mpls>
<bindings>
<mapping-server>
<srms-preferenece>
<config>
<preference>1</preference> <!-- operation="delete"-->
</config>
</srms-preferenece>
</mapping-server>
</bindings>
</sr-mpls>
</segment-routing>
Command Syntax
srms preference <1-255>
Configure start address
connected prefix for prefix-sid
Attribute Name: start-address
Attribute Type: string
Attribute Name: attached
Attribute Type: boolean
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<sr-mpls>
<bindings>
<mapping-server>
<prefix-sid-map-ipv4>
<mapping-entry> <!-- operation="delete"-->
<start-sid>0</start-sid>
<config>
<start-sid>0</start-sid>
<start-address>A.B.C.D/M</start-address>
<attached>true</attached>
</config>
<start-address>A.B.C.D/M</start-address>
</mapping-entry>
</prefix-sid-map-ipv4>
</mapping-server>
</bindings>
</sr-mpls>
</segment-routing>
Command Syntax
A.B.C.D/M <0-1048575> attached
Configure start sid
connected prefix for prefix-sid
Attribute Name: start-address
Attribute Type: string
Attribute Name: range
Attribute Type: uint32
Attribute Range: 1-65535
Attribute Name: attached
Attribute Type: boolean
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<sr-mpls>
<bindings>
<mapping-server>
<prefix-sid-map-ipv4>
<mapping-entry> <!-- operation="delete"-->
<start-sid>0</start-sid>
<config>
<start-sid>0</start-sid>
<start-address>A.B.C.D/M</start-address>
<range>1</range>
<attached>true</attached>
</config>
<start-address>A.B.C.D/M</start-address>
</mapping-entry>
</prefix-sid-map-ipv4>
</mapping-server>
</bindings>
</sr-mpls>
</segment-routing>
Command Syntax
A.B.C.D/M <0-1048575> range <1-65535> (attached|)
Configure end
SRGB end range
This command is supported when following feature are enabled sr mpls feature
Attribute Name: end
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: start
Attribute Type: uint32
Attribute Range: 16-1048575
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<sr-mpls>
<global-block>
<config>
<start>16</start>
<end>16</end>
</config>
</global-block>
</sr-mpls>
</segment-routing>
Command Syntax
global block <16-1048575> <16-1048575>
Configure start
use this attribute to configure end
This command is supported when following feature are enabled sr mpls feature
Attribute Name: end
Attribute Type: uint32
Attribute Range: 16-1048575
Attribute Name: start
Attribute Type: uint32
Attribute Range: 16-1048575
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<sr-mpls>
<local-block>
<config>
<start>16</start>
<end>16</end>
</config>
</local-block>
</sr-mpls>
</segment-routing>
Command Syntax
local block <16-1048575> <16-1048575>
Configure fast reroute enable
Enable fast reroute for traffic engineering polices
Attribute Name: fast-reroute-enable
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<config>
</fast-reroute-enable><!-- operation="delete"-->
</config>
</traffic-engineering>
</segment-routing>
Command Syntax
policy-fast-reroute-enable
Configure list name
Segment-list name
Attribute Name: list-name
Attribute Type: string
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<attributes>
<segment-lists>
<segment-list> <!-- operation="delete"-->
<list-name>WORD</list-name>
<config>
<list-name>WORD</list-name>
</config>
</segment-list>
</segment-lists>
</attributes>
</traffic-engineering>
</segment-routing>
Command Syntax
segment-list WORD
Configure sid value
MPLS label value
Attribute Name: sid-value
Attribute Type: uint32
Attribute Range: 0-1048575
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<attributes>
<segment-lists>
<segment-list>
<list-name>WORD</list-name>
<config>
<list-name>WORD</list-name>
</config>
<segments>
<segment>
<type>segment-type-1</type>
<config>
<type>segment-type-1</type>
<segment-index>1</segment-index>
</config>
<segment-index>1</segment-index>
<segment-type-1>
<config>
<sid-value>0</sid-value>
</config>
</segment-type-1>
</segment>
</segments>
</segment-list>
</segment-lists>
</attributes>
</traffic-engineering>
</segment-routing>
Command Syntax
index <1-65535> (segment-type-1) <0-1048575>
Configure prefix
SRV6 Prefix
Attribute Name: prefix
Attribute Type: inet:ipv6-address
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<attributes>
<segment-lists>
<segment-list>
<list-name>WORD</list-name>
<config>
<list-name>WORD</list-name>
</config>
<segments>
<segment-v6>
<type>segment-type-2</type>
<config>
<type>segment-type-2</type>
<segment-index>1</segment-index>
</config>
<segment-index>1</segment-index>
<segment-type-2>
<config>
<prefix>X:X::X:X</prefix>
</config>
</segment-type-2>
</segment-v6>
</segments>
</segment-list>
</segment-lists>
</attributes>
</traffic-engineering>
</segment-routing>
Command Syntax
index <1-65535> (segment-type-2) X:X::X:X
Configure end point
Policy end point IP address
Attribute Name: end-point
Attribute Type: inet:ip-address
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<policy-key> <!-- operation="delete"-->
<end-point>CML_IP_ADDR_T</end-point>
<config>
<end-point>CML_IP_ADDR_T</end-point>
<color>1</color>
</config>
<color>1</color>
</policy-key>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
color <1-4294967295> end-point (A.B.C.D|X:X::X:X)
Configure admin state
SR policy administrative state, true for enabled, false for disabled
Attribute Name: admin-state
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
</admin-state><!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
admin-state down
Configure explicit null
To set explicit null behaviour for the policy
Attribute Name: explicit-null
Attribute Type: enum (ipv4)
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<explicit-null>ipv4</explicit-null> <!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
explicit-null (ipv4)
Configure cspf retry limit
Limit on the number of times a dynamic candidate path will retry to calculate segment-list
Attribute Name: cspf-retry-limit
Attribute Type: uint32
Attribute Range: 1-65535
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<cspf-retry-limit>1</cspf-retry-limit> <!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
cspf-retry-limit <1-65535>
Configure cspf retry interval
Interval between two successive retries for calculating segment list of a dynamic candidate path using CSPF
Attribute Name: cspf-retry-interval
Attribute Type: uint32
Attribute Range: 1-600
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<cspf-retry-interval>1</cspf-retry-interval> <!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
cspf-retry-interval <1-600>
Configure pce lsp delegate
To delegate all the configured candidate path of policy to PCE controller
Attribute Name: pce-lsp-delegate
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
</pce-lsp-delegate><!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
pce lsp-delegate
Configure pce state report
To only report all the configured candidate path of policy to PCE controller
Attribute Name: pce-state-report
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
</pce-state-report><!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
pce state-report
Configure pce entity id
Entity Id of PCEP entity to which this policy should be queried/reported/delegated
Attribute Name: pce-entity-id
Attribute Type: uint32
Attribute Range: 1-255
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<pce-entity-id>1</pce-entity-id> <!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
pce entity <1-255>
Configure bsid value
configurable value for static binding sid
Attribute Name: bsid-value
Attribute Type: uint32
Attribute Range: 16-15999
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<bsid-value>16</bsid-value> <!-- operation="delete"-->
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
binding-sid mpls label <16-15999>
Configure discriminator
Candidate path distinguisher, it’s taken as a unique identifier for a Local candidate path
Attribute Name: discriminator
Attribute Type: uint32
Attribute Range: 1-65535
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path> <!-- operation="delete"-->
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
candidate-path <1-65535>
Configure protocol origin
Candidate path preference
Attribute Name: preference
Attribute Type: uint32
Default Value: 100
Attribute Range: 1-65535
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>pcep</protocol-origin>
<discriminator>1</discriminator>
<preference>1</preference> <!-- operation="delete"-->
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
preference <1-65535>
Configure pcep
Dynamic candidate path properties of PCEP
Attribute Name: pcep
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>pcep</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<config>
</pcep><!-- operation="delete"-->
</config>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
dynamic-path pcep
Configure isis
Dynamic candidate path properties of ISIS
Attribute Name: isis
Attribute Type: string
Default Value: ""
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>pcep</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<config>
<isis>WORD</isis> <!-- operation="delete"-->
</config>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
dynamic-path isis (WORD|)
Configure ospf
Dynamic candidate path properties of OSPF with process-id
Attribute Name: ospf
Attribute Type: int32
Attribute Range: 0-65535
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>pcep</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<config>
<ospf>0</ospf> <!-- operation="delete"-->
</config>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
dynamic-path ospf <0-65535>
Configure ospf empty
Dynamic candidate path properties of OSPF without process-id
Attribute Name: ospf-empty
Attribute Type: empty
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>pcep</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<config>
</ospf-empty><!-- operation="delete"-->
</config>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
dynamic-path ospf
Configure originator
Enable constraints for the candidate path
Attribute Name: enable
Attribute Type: uint8
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<constraints>
<config>
</enable>
</config>
</constraints>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
constraints
Configure admin group name
admin group name
Attribute Name: admin-group-name
Attribute Type: string
Attribute Name: affinity-type
Attribute Type: enum (exclude-any|include-any|include-all)
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<constraints>
<admin-groups>
<admin-group> <!-- operation="delete"-->
<admin-group-name>ADMIN-GROUP-NAME</admin-group-name>
<config>
<admin-group-name>ADMIN-GROUP-NAME</admin-group-name>
<affinity-type>exclude-any</affinity-type>
</config>
</admin-group>
</admin-groups>
</constraints>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
affinity (exclude-any|include-any|include-all) ADMIN-GROUP-NAME
Configure address
Hop address which needs toincluded in the LSP
Attribute Name: address
Attribute Type: inet:ip-address
Attribute Name: type
Attribute Type: enum (loose|strict)
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<constraints>
<ip>
<include-hop> <!-- operation="delete"-->
<address>A.B.C.D/XXXX::YYYY</address>
<config>
<address>A.B.C.D/XXXX::YYYY</address>
<type>loose</type>
</config>
</include-hop>
</ip>
</constraints>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
A.B.C.D/XXXX::YYYY (loose|strict|)
Configure metric type
Metric type can be IGP or TE
Attribute Name: metric-type
Attribute Type: enum (igp|te)
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>pcep</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<constraints>
<bounds> <!-- operation="delete"-->
<metric-type>igp</metric-type>
<config>
<metric-type>igp</metric-type>
</config>
</bounds>
</constraints>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
metric-type (igp|te)
Configure bound
Path is invalid if its metric exceeds this value, If no value is specified
Attribute Name: bound
Attribute Type: uint32
Attribute Range: 1-4294967295
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<traffic-engineering>
<policies>
<policy>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<candidate-paths>
<candidate-path>
<originator>WORD</originator>
<config>
<originator>WORD</originator>
<protocol-origin>local</protocol-origin>
<discriminator>1</discriminator>
</config>
<protocol-origin>pcep</protocol-origin>
<discriminator>1</discriminator>
<dynamic>
<constraints>
<bounds>
<metric-type>igp</metric-type>
<config>
<metric-type>igp</metric-type>
</config>
<bound>1</bound> <!-- operation="delete"-->
</bounds>
</constraints>
</dynamic>
</candidate-path>
</candidate-paths>
</policy>
</policies>
</traffic-engineering>
</segment-routing>
Command Syntax
metric-type (igp|te) bound <1-4294967295>
Configure locator name
Locator name
Attribute Name: locator-name
Attribute Type: string
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<srv6>
<locators>
<locator> <!-- operation="delete"-->
<locator-name>WORD</locator-name>
<config>
<locator-name>WORD</locator-name>
</config>
</locator>
</locators>
</srv6>
</segment-routing>
Command Syntax
locator WORD
Configure options
This attribute is used to enable/disable SR Policy debug logs
Attribute Name: options
Attribute Type: bits (policy|cp|pce|all)
Netconf edit-config payload
<segment-routing xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<debug>
<config>
<options>policy</options> <!-- operation="delete"-->
</config>
</debug>
</segment-routing>
Command Syntax
debug sr-policy (policy|cp|pce|all|)
debug sr-policy (policy|cp|pce|all|)
Attribute Name: terminal-debug-options
Attribute Type: bits (policy|cp|pce|all)
Netconf RPC payload
<sr-policy-terminal-debug-on xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<terminal-debug-options>policy</terminal-debug-options>
</sr-policy-terminal-debug-on>
Command Syntax
debug sr-policy (policy|cp|pce|all|)
no debug sr-policy (policy|cp|pce|all|)
Attribute Name: terminal-debug-options
Attribute Type: bits (policy|cp|pce|all)
Netconf RPC payload
<sr-policy-terminal-debug-off xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-segment-routing">
<terminal-debug-options>policy</terminal-debug-options>
</sr-policy-terminal-debug-off>
Command Syntax
no debug sr-policy (policy|cp|pce|all|)