Skip to content

'get_ospf_sr_adj_sid_and_neighbor_address' gives only one sid ( the protected sid) #78

@phongere

Description

@phongere

There are 2 sids per link in Segment routing. 'get_ospf_sr_adj_sid_and_neighbor_address' is giving only the protected sid. We need the api to get both sids with keys something like 'protect' and 'unprotect'

You can see in the below log for both neighbor addresses there is only one sid returned and it does not indicate whether its protected or unprotected. If the flags is 'DU' its unprotected sid and flags 'DP' is protected sid

get_ospf_sr_adj_sid_and_neighbor_address(rtr1,'100')

2021-09-28 11:15:35,514: %UNICON-INFO: +++ R1 with alias 'a': executing command 'show ip ospf segment-routing adjacency-sid' +++
show ip ospf segment-routing adjacency-sid

        OSPF Router with ID (1.1.1.1) (Process ID 100)
Flags: S - Static, D - Dynamic,  P - Protected, U - Unprotected, G - Group, L - Adjacency Lost

Adj-Sid Neighbor ID Interface Neighbor Addr Flags Backup Nexthop Backup Interface


17 1.1.1.6 BD161 1.1.1.6 D U
19 1.1.1.6 BD161 1.1.1.6 D P 1.6.1.6 BD162
24 1.1.1.6 BD162 1.6.1.6 D U
26 1.1.1.6 BD162 1.6.1.6 D P 1.1.1.6 BD161
R1#
{'1.1.1.6': '19', '1.6.1.6': '26'}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions