Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baozhen-H3C
Copy link
Contributor

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]

@donaldsharp
Copy link
Member

  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.

@baozhen-H3C baozhen-H3C changed the title isisd: modify the fast-reroute lfa tiebreaker [downstream | lowest-backup-metric | node-protecting] index (1-255) [level-1 | level-2] command to address the issue where configurations with the same index but different types are being overwritten. isisd: The command 'fast-reroute lfa tiebreaker [downstream | lowest-backup-metric | node-protecting] index (1-255) [level-1 | level-2]' has an error Aug 16, 2024
@baozhen-H3C baozhen-H3C changed the title isisd: The command 'fast-reroute lfa tiebreaker [downstream | lowest-backup-metric | node-protecting] index (1-255) [level-1 | level-2]' has an error isisd: The command 'fast-reroute lfa tiebreaker [downstream | lowest-backup-metric | node-protecting] ...' has an error Aug 16, 2024
@baozhen-H3C
Copy link
Contributor Author

baozhen-H3C commented Aug 16, 2024

@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.

@donaldsharp
Copy link
Member

please apply the frrbot style suggestions

Copy link
Member

@Jafaral Jafaral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please change the PR/commit title to be a short sentence? move any details to the body of the commit.

@github-actions github-actions bot added the rebase PR needs rebase label Aug 23, 2024
Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks okay ... waiting on title change, etc.

@baozhen-H3C baozhen-H3C changed the title isisd: The command 'fast-reroute lfa tiebreaker [downstream | lowest-backup-metric | node-protecting] ...' has an error isisd: 'tiebreaker' command line funtionality is inconsistent with its implementation Aug 30, 2024
@baozhen-H3C
Copy link
Contributor Author

Sorry, I have changed it. Is this OK?

@riw777
Copy link
Member

riw777 commented Sep 17, 2024

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 ...

@github-actions github-actions bot added size/M and removed size/S labels Sep 19, 2024
…s implementation

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]>
@riw777
Copy link
Member

riw777 commented Oct 8, 2024

@Jafaral can you take another look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants