frr icon indicating copy to clipboard operation
frr copied to clipboard

isisd: 'tiebreaker' command line funtionality is inconsistent with its implementation

Open baozhen-H3C opened this issue 1 year ago • 6 comments

isisd: The command fast-reroute lfa tiebreaker [downstream | lowest-backup-metric | node-protecting] index (1-255) [level-1 | level-2] will overwrite configurations with the same index but different types. This is because the index is set as the key in frr-isisd.yang. However, the lfa_tiebreaker_cmp function uses a tuple (index, type) as the key. Therefore, the yang file should be modified to stay in sync with the business logic.

Test Scenario: On RouterA, first configure fast-reroute lfa tiebreaker downstream index 100 level-1, then configure fast-reroute lfa tiebreaker lowest-backup-metric index 100 level-1, and check the configuration: ! router isis 10 fast-reroute lfa tiebreaker lowest-backup-metric index 100 level-1 exit !

Signed-off-by: baozhen-H3C [email protected]

baozhen-H3C avatar Aug 15 '24 09:08 baozhen-H3C

  1. Apply frrbot style suggestions
  2. Commit comment should be a short subject line and then a description of what really is going on in the commit later, not one big line on the subject.

donaldsharp avatar Aug 15 '24 14:08 donaldsharp

@donaldsharp I have already modified the Commit comment, but my CI seems to encounter a problem: AssertionError: Testcase test_ospfv3_hello_tc10_p0 [22]: Failed Error: [DUT: r0] missing OSPF neighbor r1 with router-id 100.1.1.1 assert '[DUT: r0] missing OSPF neighbor r1 with router-id 100.1.1.1' is True E AssertionError: Testcase test_ospfv3_hello_tc10_p0 [22]: Failed Error: [DUT: r0] missing OSPF neighbor r1 with router-id 100.1.1.1 assert '[DUT: r0] missing OSPF neighbor r1 with router-id 100.1.1.1' is True

I modified the ISIS code, and this OSPF unit test does not involve ISIS configuration. Therefore, is this CI error a false alarm? Could you please trigger the CI again? Thank you.

baozhen-H3C avatar Aug 16 '24 02:08 baozhen-H3C

please apply the frrbot style suggestions

donaldsharp avatar Aug 16 '24 12:08 donaldsharp

Sorry, I have changed it. Is this OK?

baozhen-H3C avatar Aug 30 '24 05:08 baozhen-H3C

We need to get these done --

https://github.com/FRRouting/frr/pull/16593/checks?check_run_id=29461002987

once those are done I'll work on figuring out what is happening with the ci failure ...

riw777 avatar Sep 17 '24 14:09 riw777

@Jafaral can you take another look at this?

riw777 avatar Oct 08 '24 15:10 riw777

@Jafaral can you take another look at this?

riw777 avatar Jan 07 '25 13:01 riw777

@Jafaral can you take a look at this to see if we can clear the blocker?

riw777 avatar Jan 28 '25 15:01 riw777

@Mergifyio rebase

riw777 avatar Feb 04 '25 11:02 riw777

rebase

✅ Branch has been successfully rebased

mergify[bot] avatar Feb 04 '25 11:02 mergify[bot]