Segment Routing IPv6
Configure Segment Routing v6 (SRv6) with locators and micro-segment behaviors on IOS-XR devices.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”configuration (iosxr.devices)
Section titled “configuration (iosxr.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| segment_routing_v6 | Class | [segment_routing_v6] | No |
segment_routing_v6 (iosxr.devices.configuration)
Section titled “segment_routing_v6 (iosxr.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| enable | Boolean | true, false | No | |
| encapsulation_source_address | String | No | ||
| formats | List | [formats] | No | |
| locators | List | [locators] | No |
formats (iosxr.devices.configuration.segment_routing_v6)
Section titled “formats (iosxr.devices.configuration.segment_routing_v6)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| usid_local_id_block_ranges_explict_lib_start | Integer | min: 57444, max: 65279 | No | |
| usid_local_id_block_ranges_lib_start | Integer | min: 57344, max: 57344 | No | |
| usid_wide_local_id_block_explicit_range | Integer | min: 65520, max: 65527 | No |
locators (iosxr.devices.configuration.segment_routing_v6)
Section titled “locators (iosxr.devices.configuration.segment_routing_v6)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| locator_enable | Boolean | true, false | No | |
| micro_segment_behavior | String | No | ||
| prefix | String | No | ||
| prefix_length | Integer | min: 1, max: 128 | No |
Example YAML Code:
Section titled “Example YAML Code:”Example-1: Configure Segment Routing v6 with multiple locators.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: segment_routing_v6: enable: true encapsulation_source_address: "fccc:0:214::1" locators: - name: "Locator1" locator_enable: true micro_segment_behavior: "unode-psp-usd" prefix: "fccc:0:214::" prefix_length: 48 - name: "Locator2" locator_enable: true micro_segment_behavior: "unode-psp-usd" prefix: "fccc:0:215::" prefix_length: 48Example-2: Configure Segment Routing v6 with single locator.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: segment_routing_v6: enable: true encapsulation_source_address: "fccc:0:300::1" locators: - name: "MainLocator" locator_enable: true micro_segment_behavior: "unode-psp-usd" prefix: "fccc:0:300::" prefix_length: 48Example-3: Configure Segment Routing v6 with format and uSID configuration.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: segment_routing_v6: enable: true encapsulation_source_address: "fccc:0:400::1" formats: - name: "usid-f3216" usid_local_id_block_ranges_lib_start: 57344 usid_local_id_block_ranges_explict_lib_start: 57444 usid_wide_local_id_block_explicit_range: 65520 locators: - name: "uSID_Locator" locator_enable: true micro_segment_behavior: "unode-psp-usd" prefix: "fccc:0:400::" prefix_length: 48