Open huangyl-git opened 8 months ago
The adj_sid from r4 to r5 can't obtained in r1 because the remote id of r4‘srl is not stored on r1,how to get it ?
This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose
label in order to avoid having this issue closed.
Describe the bug
scenario:![image](https://github.com/FRRouting/frr/assets/148689120/6b19c64f-95d9-4af0-826f-6d7dbbafdd66)
debug data: r1# sh ip ospf database segment-routing adv-router 10.1.1.4
SR-Node: 10.1.1.4 SRGB: [16400/23999] SRLB: [15400/15999] Algo.(s): SPF MSD: 8
192.168.14.4/32 SR Adj. (lbl 15401) no-op. - 192.168.14.1 192.168.14.4/32 SR Adj. (lbl 15400) no-op. - 192.168.14.1 192.168.45.4/32 SR Adj. (lbl 15403) no-op. - 192.168.45.5 192.168.45.4/32 SR Adj. (lbl 15402) no-op. - 192.168.45.5
Trace and debug the following code:
(gdb) p/x *srl $50 = { adv_router = { s_addr = 0x401010a }, instance = 0x8000002,
remote_id = { s_addr = 0x0
}, itf_addr = { s_addr = 0x42da8c0 }, flags = {0x60, 0xe0}, sid = {0x3c2b, 0x3c2a}, type = 0x2, nhlfe = {{ nexthop = { s_addr = 0x52da8c0 }, ifindex = 0x0, label_in = 0x0, label_out = 0x0 }, { nexthop = { s_addr = 0x52da8c0 }, ifindex = 0x0, label_in = 0x0, label_out = 0x0 }}, srn = 0xaaaae3a9fa80 }
see it, the remote_id is 0. so why? ----- Whether the remote id does not flooding?? and Otherwise we have a P and also a Q node (which are adjacent), Whether adj sid should be obtained by determining whether the next hop is the same, Instead of the remote_id.s_addr.