Skip to content

Skip ROUTE_TABLE and NEIGH_RESOLVE_TABLE entries for test_add_rack.py#13799

Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom
bobbymcgonigle:master-test_add_rack
Aug 8, 2024
Merged

Skip ROUTE_TABLE and NEIGH_RESOLVE_TABLE entries for test_add_rack.py#13799
StormLiangMS merged 1 commit intosonic-net:masterfrom
bobbymcgonigle:master-test_add_rack

Conversation

@bobbymcgonigle
Copy link
Contributor

Description of PR

Summary:
For T1 topo on boot there are some route table entries that already exist for Ethernet128 (test_add_rack uses this intf explicitly).

test_add_rack takes a snapshot of the DB at this point and after applying patch_add.json to config. It compares the two and succeeds.

test_add_rack now applies patch_rm.json. This removes the BGP_NEIGHBOUR and /INTERFACE/Ethernet128 entries. Once this happens, APPL_DB will purge it's ROUTE table entries for Ethernet128. Fix is to skip these entries for APPL_DB comparison. We also see the same issue for NEIGH_RESOLVE_TABLE entries; @wen587 confirmed we can skip these too.

The missing entries are:

ROUTE_TABLE:100.1.0.17
ROUTE_TABLE:20c0:a800::/64
ROUTE_TABLE:192.168.0.128/25
ROUTE_TABLE:2064:100::11
ROUTE_TABLE:192.168.0.0/25
ROUTE_TABLE:20c0:a800:0:80::/64

Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

To get this test passing on master, 202405, 202311

How did you do it?

Skip the APPL_DB comparison entries

How did you verify/test it?

The test passes on all branches on Arista SKUs now

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@wsycqyz
Copy link
Contributor

wsycqyz commented Jul 25, 2024

Is it possible that the PR affects other vendor SKU?

Copy link
Contributor

@wen587 wen587 left a comment

Choose a reason for hiding this comment

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

lgtm

@mssonicbld
Copy link
Collaborator

@bobbymcgonigle PR conflicts with 202311 branch

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 8, 2024
…sonic-net#13799)

What is the motivation for this PR?
To get this test passing on master, 202405, 202311

How did you do it?
Skip the APPL_DB comparison entries

How did you verify/test it?
The test passes on all branches on Arista SKUs now
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #14034

mssonicbld pushed a commit that referenced this pull request Aug 8, 2024
…#13799)

What is the motivation for this PR?
To get this test passing on master, 202405, 202311

How did you do it?
Skip the APPL_DB comparison entries

How did you verify/test it?
The test passes on all branches on Arista SKUs now
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
…sonic-net#13799)

What is the motivation for this PR?
To get this test passing on master, 202405, 202311

How did you do it?
Skip the APPL_DB comparison entries

How did you verify/test it?
The test passes on all branches on Arista SKUs now
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
…sonic-net#13799)

What is the motivation for this PR?
To get this test passing on master, 202405, 202311

How did you do it?
Skip the APPL_DB comparison entries

How did you verify/test it?
The test passes on all branches on Arista SKUs now
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.

5 participants