Skip to content

[dualtor] Add neighbor entry orchagent testcase#3031

Merged
lolyu merged 4 commits intosonic-net:masterfrom
lolyu:add_test_server_neighbor
Apr 15, 2021
Merged

[dualtor] Add neighbor entry orchagent testcase#3031
lolyu merged 4 commits intosonic-net:masterfrom
lolyu:add_test_server_neighbor

Conversation

@lolyu
Copy link
Collaborator

@lolyu lolyu commented Feb 24, 2021

Verify that, for standby ToR, the traffic to the server will be dropped if the neighbor entry of server is removed.

Signed-off-by: Longxiang Lyu lolv@microsoft.com

Description of PR

Summary:
Fixes #2805

Type of change

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

Approach

What is the motivation for this PR?

Verify that, for standby ToR, the traffic to the server will be dropped if the neighbor entry of server is removed.

How did you do it?

Verify that the traffic to server is neither passed to server directly by standby ToR or encapsulated to the active ToR.

How did you verify/test it?

dualtor/test_t1_to_standby.py::test_standby_tor_remove_neighbor_downstream_standby PASSED                                                                                                      [100%]

===================================================================================== 1 passed in 28.33 seconds ======================================================================================

Any platform specific information?

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

Documentation

@lolyu lolyu force-pushed the add_test_server_neighbor branch 2 times, most recently from f1e8bb6 to 8006bc4 Compare March 1, 2021 09:55
@lolyu lolyu marked this pull request as ready for review March 1, 2021 09:56
@lolyu lolyu requested a review from a team as a code owner March 1, 2021 09:56
@lolyu lolyu changed the title [dualtor] Add 'test_remove_neighbor_entry' [dualtor] Add 'test_standby_tor_remove_neighbor_downstream_standby' Mar 1, 2021
@lolyu lolyu force-pushed the add_test_server_neighbor branch from 8006bc4 to 5f16a54 Compare March 5, 2021 09:29
@lolyu
Copy link
Collaborator Author

lolyu commented Mar 5, 2021

depends on #3098

@lolyu
Copy link
Collaborator Author

lolyu commented Mar 5, 2021

/AZP run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lolyu lolyu force-pushed the add_test_server_neighbor branch from 5f16a54 to b30f474 Compare March 5, 2021 09:56
@lolyu
Copy link
Collaborator Author

lolyu commented Mar 8, 2021

/AZP run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lolyu
Copy link
Collaborator Author

lolyu commented Mar 9, 2021

/AZP run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it not be better if we send traffic to all/multiple servers, and then verify that the traffic is dropped only for the server whose neighbor entry has been removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

How did we decide to send 10 packets and not more? I think 10 packets are too less to verify close to real operational scenario.

@theasianpianist
Copy link
Contributor

Please change the filename to be more specific than just t1_to_standby since we have many tests that also use that packet flow scenario.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@lolyu lolyu force-pushed the add_test_server_neighbor branch from b30f474 to 6812e0b Compare April 13, 2021 08:50
@lolyu lolyu changed the title [dualtor] Add 'test_standby_tor_remove_neighbor_downstream_standby' [dualtor] Add neighbor entry orchagent testcase Apr 13, 2021
testutils.send(ptfadapter, int(ptf_t1_intf.strip("eth")), pkt, count=10)

logging.info("send traffic to server %s after removing neighbor entry", server_ipv4)
tunnel_monitor.existing = False
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we did this instead of just creating a new tunnel_traffic_monitor?

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@lolyu
Copy link
Collaborator Author

lolyu commented Apr 15, 2021

Hi @theasianpianist, could you please give another look at the new changes?

@lolyu lolyu force-pushed the add_test_server_neighbor branch from 900e7e4 to 4cd0ed8 Compare April 15, 2021 12:21
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@lolyu lolyu force-pushed the add_test_server_neighbor branch from 4cd0ed8 to bb574a7 Compare April 15, 2021 12:31
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@lolyu
Copy link
Collaborator Author

lolyu commented Apr 15, 2021

dualtor/test_orchagent_standby_tor_downstream.py::test_standby_tor_remove_neighbor_downstream_standby PASSED                                                                                   [100%]

@sonic-net sonic-net deleted a comment from lgtm-com bot Apr 15, 2021
@sonic-net sonic-net deleted a comment from lgtm-com bot Apr 15, 2021
@sonic-net sonic-net deleted a comment from lgtm-com bot Apr 15, 2021
@sonic-net sonic-net deleted a comment from lgtm-com bot Apr 15, 2021
@sonic-net sonic-net deleted a comment from lgtm-com bot Apr 15, 2021
@lgtm-com
Copy link

lgtm-com bot commented Apr 15, 2021

This pull request fixes 1 alert when merging 1c065b1 into 94ffb11 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@theasianpianist theasianpianist requested a review from prsunny April 15, 2021 19:12
@theasianpianist
Copy link
Contributor

lgtm

@theasianpianist
Copy link
Contributor

/Azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lolyu lolyu merged commit 493f127 into sonic-net:master Apr 15, 2021
@lolyu lolyu deleted the add_test_server_neighbor branch April 15, 2021 23:57
saravanansv pushed a commit to saravanansv/sonic-mgmt that referenced this pull request May 6, 2021
Approach
What is the motivation for this PR?
Verify that, for standby ToR, the traffic to the server will be dropped if the neighbor entry of server is removed.

How did you do it?
Verify that the traffic to server is neither passed to server directly by standby ToR or encapsulated to the active ToR.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
Approach
What is the motivation for this PR?
Verify that, for standby ToR, the traffic to the server will be dropped if the neighbor entry of server is removed.

How did you do it?
Verify that the traffic to server is neither passed to server directly by standby ToR or encapsulated to the active ToR.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…atically (sonic-net#17849)

src/sonic-utilities

* 7a7305e9 - (HEAD -> 202205, origin/202205) Fix issue: out of range sflow polling interval is accepted and stored in config_db (sonic-net#2847) (sonic-net#3123) (3 hours ago) [Stephen Sun]
* 06d11339 - [config] config reload should generate sysinfo if missing  (sonic-net#3031) (sonic-net#3126) (21 hours ago) [jingwenxie]
* bef96a1d - [202205] Allow using latest sonic-swss-common build even if tests failed (sonic-net#3127) (4 days ago) [Saikrishna Arcot]
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.

Neighbor Entry Test Case

4 participants