The display bgp link-state unicast routing-table sr-algorithm command displays the SR Algorithm attributes of node routes.
The display bgp link-state unicast routing-table flexible-algorithm-definition command displays the FAD attributes of node routes.
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the address of the IPv4 peer to be displayed. |
The value is in dotted decimal notation. |
peerIpv6Addr |
Specifies the address of the IPv6 peer to be displayed. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
received-routes |
Displays BGP-LS routes received from the specified peer. |
- |
advertised-routes |
Displays BGP-LS routes advertised to the specified peer. |
- |
prefix |
Specifies a BGP-LS route prefix. |
The BGP-LS route prefix format is complex. To facilitate your query, run the display bgp link-state unicast routing-table command to check all BGP-LS routes, and copy the prefix of the route whose information is to be queried when specifying prefix. |
Usage Scenario
To check the Flexible Algorithm Definition (FAD) attributes of node routes, run the display bgp link-state unicast routing-table flexible-algorithm-definition command. The FAD attribute is used to define the flexible algorithm to be advertised by an IGP. Routers can use various algorithms to calculate reachability to other nodes or to the prefixes appended to these nodes. These algorithms include metric-based shortest path first (SPF) and various constraint-based SPFs.
To check the SR Algorithm attributes of node routes, run the display bgp link-state unicast routing-table sr-algorithm command.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp link-state unicast routing-table [NODE][ISIS-LEVEL-1][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier10.1.1.1][ospf-area-id0.0.0.0][igp-router-id0000.0000.0001.00]] flexible-algorithm-definition Flexible Algorithm Definition Count: 1 FAD(FlexAlgo/MetricType/CalcType/Priority): <128/0/0/128> Exclude-Any EAG: 0x00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Include-Any EAG: 0x00000080 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Include-All EAG: Flags: 0x00000080
<HUAWEI> display bgp link-state unicast routing-table [NODE][ISIS-LEVEL-2][IDENTIFIER0][LOCAL[as100][bgp-ls-identifier10.1.1.1][ospf-area-id0.0.0.0][igp-router-id0000.0000.0001.00]] sr-algorithm SR Algorithm: 0, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144
Item | Description |
---|---|
Flexible Algorithm Definition Count | FAD count. |
Exclude-Any EAG | Flex-Algo, excluding any affinity sub-TLV. |
Include-Any EAG | Flex-Algo, including any affinity sub-TLV. |
Include-All EAG | Flex-Algo, including all affinity sub-TLVs. |
SR Algorithm | Segment Routing algorithm. |
FAD(FlexAlgo/MetricType/CalcType/Priority) | Flexible algorithm definition (FlexAlgo/MetricType/CalcType/Priority). |
Flags | FAD flag. |