Skip to content

Fix route_check.py to ignore local p2p IP prefixes #3882

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

prabhataravind
Copy link

  • In some cases where there are repeated link flaps, route_check.py flags local p2p IP prefixes as missing in APPL_DB. These /31 IPv4 or /126 IPv6 IPs are not expected to be present in APPL_DB after a link goes down. This change tries to filter out such entries.

    Failure results: {{
    "missed_ROUTE_TABLE_routes": [
    "10.10.196.16/31",
    "2603:10b0:31f:753::24/126"
    ]
    }}
    Failed. Look at reported mismatches above
    add: []
    del: [
    "10.10.196.16/31",
    "2603:10b0:31f:753::24/126"
    ]

What I did

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 227374e to da49c12 Compare May 15, 2025 18:48
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from da49c12 to 44dcf95 Compare May 15, 2025 18:50
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 44dcf95 to c03c087 Compare May 15, 2025 23:33
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 70f909b to 5930d70 Compare July 3, 2025 02:23
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 5930d70 to 50e9636 Compare July 3, 2025 02:30
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 50e9636 to c605f09 Compare July 3, 2025 02:37
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from c605f09 to 3ab0820 Compare July 3, 2025 03:30
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from ac95347 to d71aa3d Compare July 3, 2025 21:03
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from aab456d to 2f3f7b5 Compare July 7, 2025 00:00
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 09a396d to ef9d4bc Compare July 7, 2025 02:38
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from ef9d4bc to 84294b9 Compare July 7, 2025 03:20
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 84294b9 to 44d3417 Compare July 7, 2025 03:58
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 44d3417 to 016c07e Compare July 7, 2025 04:11
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

 * In some cases where there are repeated link flaps, route_check.py flags local
   p2p IP prefixes as missing in APPL_DB. These /31 IPv4 or /126 IPv6 IPs are
   not expected to be present in APPL_DB after a link goes down. This change
   tries to filter out such entries.

    Failure results: {{
        "missed_ROUTE_TABLE_routes": [
            "10.10.196.16/31",
            "2603:10b0:31f:753::24/126"
        ]
    }}
    Failed. Look at reported mismatches above
    add: []
    del: [
        "10.10.196.16/31",
        "2603:10b0:31f:753::24/126"
    ]

Signed-off-by: Prabhat Aravind <[email protected]>
@prabhataravind prabhataravind force-pushed the paravind/route_check branch from 016c07e to 1b3425d Compare July 7, 2025 04:44
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prabhataravind prabhataravind requested a review from prsunny July 7, 2025 22:42
@prabhataravind prabhataravind marked this pull request as ready for review July 7, 2025 22:43
@prabhataravind prabhataravind requested a review from qiluo-msft July 8, 2025 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants