OSPFv2 Router Information LSA (ospfv2_ri_lsa)
- Layer: L3 (network)
- Header: variable length
- Notes: OSPF Opaque / SR, BGP MP / VPN / EVPN (P2)
Reached from
| Lower layer | Selector | Value |
|---|---|---|
ospfv2_opaque_lsa | opaque_type | 4 (0x04) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
tlvs | tlv — rest of the PDU | 4 items | TLVs of the opaque LSA (16-bit type and length, values padded to 4 octets; lengths Auto). |
tlvs
- Type 16 bits, length 16 bits.
- The length counts the value only.
- Each item is zero-padded to a multiple of 4 octets (not counted in the length)
- Unknown types are kept as raw value octets.
| Type | Name | Value fields | Description |
|---|---|---|---|
| 1 (0x0001) | informational_capabilities | capabilities | |
| 2 (0x0002) | functional_capabilities | capabilities | |
| 7 (0x0007) | hostname | hostname | |
| 8 (0x0008) | sr_algorithm | algorithms | |
| 9 (0x0009) | sid_label_range | range_size, reserved, sub_tlvs | |
| 14 (0x000e) | sr_local_block | range_size, reserved, sub_tlvs | |
| 15 (0x000f) | srms_preference | preference, reserved |
tlvs › informational_capabilities
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
capabilities | flags(32) |
tlvs › informational_capabilities › capabilities
| Bit | Mask | Name |
|---|---|---|
| 31 | 2147483648 (0x80000000) | graceful_restart |
| 30 | 1073741824 (0x40000000) | graceful_restart_helper |
| 29 | 536870912 (0x20000000) | stub_router |
| 28 | 268435456 (0x10000000) | traffic_engineering |
| 27 | 134217728 (0x08000000) | p2p_over_lan |
| 26 | 67108864 (0x04000000) | experimental_te |
tlvs › functional_capabilities
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
capabilities | uint(32) |
tlvs › hostname
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
hostname | bytes — rest of the PDU |
tlvs › sr_algorithm
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
algorithms | list<uint(8)> — rest of the PDU |
tlvs › sid_label_range
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
range_size | uint(24) | |||
reserved | uint(8) | |||
sub_tlvs | tlv — rest of the PDU |
tlvs › sid_label_range › sub_tlvs
- Type 16 bits, length 16 bits.
- The length counts the value only.
- Each item is zero-padded to a multiple of 4 octets (not counted in the length)
- Unknown types are kept as raw value octets.
| Type | Name | Value fields | Description |
|---|---|---|---|
| 1 (0x0001) | sid_label | label; when the value is 3 octets | |
| 1 (0x0001) | sid_label_index | index; when the value is 4 octets |
tlvs › sid_label_range › sub_tlvs › sid_label
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
label | uint(24) |
tlvs › sid_label_range › sub_tlvs › sid_label_index
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
index | uint(32) |
tlvs › sr_local_block
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
range_size | uint(24) | |||
reserved | uint(8) | |||
sub_tlvs | tlv — rest of the PDU |
tlvs › sr_local_block › sub_tlvs
- Type 16 bits, length 16 bits.
- The length counts the value only.
- Each item is zero-padded to a multiple of 4 octets (not counted in the length)
- Unknown types are kept as raw value octets.
| Type | Name | Value fields | Description |
|---|---|---|---|
| 1 (0x0001) | sid_label | label; when the value is 3 octets | |
| 1 (0x0001) | sid_label_index | index; when the value is 4 octets |
tlvs › sr_local_block › sub_tlvs › sid_label
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
label | uint(24) |
tlvs › sr_local_block › sub_tlvs › sid_label_index
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
index | uint(32) |
tlvs › srms_preference
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
preference | uint(8) | |||
reserved | uint(24) |
Sample templates
- ospfv2-lsu-ri-sr —
templates/protocols/routing/ospfv2-lsu-ri-sr.wpg.yaml