Skip to content

[dualtor] Add utilities to handle ip neighbor#3077

Merged
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:add_ip_neighbor_utils
Mar 3, 2021
Merged

[dualtor] Add utilities to handle ip neighbor#3077
lolyu merged 1 commit intosonic-net:masterfrom
lolyu:add_ip_neighbor_utils

Conversation

@lolyu
Copy link
Collaborator

@lolyu lolyu commented Mar 3, 2021

  1. add show_arp to return the arp command output for neighbor.
  2. add context manager flush_neighbor to remove/restore neighbor
    entry.

Signed-off-by: Longxiang Lyu [email protected]

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

Add utils to handle ip neighbor operations.

How did you do it?

  1. add function show_arp to show the neighbor info.
  2. add context manager flush_neighbor to remove/restore neighbor
    entry.

How did you verify/test it?

Any platform specific information?

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

Documentation

@lolyu lolyu requested a review from a team as a code owner March 3, 2021 07:28
1. add `show_arp` to return the `arp` command output for neighbor.
2. add context manager `flush_neighbor` to remove/restore neighbor
entry.

Signed-off-by: Longxiang Lyu <[email protected]>
@lolyu lolyu force-pushed the add_ip_neighbor_utils branch from 0e57910 to 2c1557f Compare March 3, 2021 07:35
@lolyu lolyu merged commit f1c0d35 into sonic-net:master Mar 3, 2021
@lolyu lolyu deleted the add_ip_neighbor_utils branch March 3, 2021 07:38
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