Skip to content

Revert "dualtor_neighbor_check.py changed"#4136

Merged
qiluo-msft merged 1 commit intomasterfrom
revert-3931-dualtor_neigh_check
Nov 27, 2025
Merged

Revert "dualtor_neighbor_check.py changed"#4136
qiluo-msft merged 1 commit intomasterfrom
revert-3931-dualtor_neigh_check

Conversation

@prsunny
Copy link
Contributor

@prsunny prsunny commented Nov 25, 2025

Reverts #3931

Reverting for backward compatibility issues.

Copilot AI review requested due to automatic review settings November 25, 2025 18:20
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Contributor Author

prsunny commented Nov 25, 2025

@zjswhhh for viz
@manamand2020

Copy link
Contributor

@manamand2020 manamand2020 left a comment

Choose a reason for hiding this comment

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

LTGM

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts changes from PR #3931 to restore backward compatibility in the dualtor neighbor check functionality. The revert removes the nexthop table querying feature that was previously added, simplifying the neighbor consistency checking logic.

Key changes:

  • Removed ASIC nexthop table querying from the Lua script and Python code
  • Reverted NEIGHBOR_ATTRIBUTES from 9 to 8 fields (removed "PREFIX_ROUTE" and "NEXTHOP_TYPE", kept "TUNNEL_IN_ASIC")
  • Updated test expectations to match the simpler consistency check logic
  • Removed two test cases that specifically tested SOC IP neighbor scenarios with nexthop type checking

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/dualtor_neighbor_check.py Reverted to simpler neighbor consistency checking without nexthop table queries; removed nexthop-related Lua script code and simplified HWSTATUS logic
tests/dualtor_neighbor_check_test.py Updated all test expectations to match reverted 8-attribute format; removed nexthop table test data and two SOC IP neighbor test cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@qiluo-msft
Copy link
Contributor

We should be safe to ignore Pretest Static Analysis errors "E501 line too long (129 > 120 characters)". I will force merge.

@qiluo-msft qiluo-msft merged commit 67232b6 into master Nov 27, 2025
12 of 13 checks passed
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202511:

@vmittal-msft
Copy link
Contributor

@prsunny please help raise pr for 202511

@prsunny
Copy link
Contributor Author

prsunny commented Dec 8, 2025

@manamand2020 , can you please create a PR for 202511? @lolyu for viz

@manamand2020
Copy link
Contributor

@manamand2020 , can you please create a PR for 202511? @lolyu for viz

It seems this change is not present in 202511.

YairRaviv pushed a commit to YairRaviv/sonic-utilities that referenced this pull request Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants