[add-topo] Refresh ARP table of neighbors with new MAC of new PTF#836
Merged
lguohan merged 1 commit intosonic-net:masterfrom Apr 5, 2019
wangxin:add-topo-pr
Merged
[add-topo] Refresh ARP table of neighbors with new MAC of new PTF#836lguohan merged 1 commit intosonic-net:masterfrom wangxin:add-topo-pr
lguohan merged 1 commit intosonic-net:masterfrom
wangxin:add-topo-pr
Conversation
… PTF container The PTF container will be destroyed if testbed-cli.sh remove-topo is executed. Run testbed-cli.sh add-topo will add a new PTF conainer. Usually the new PTF container will have a new MAC address. If add-topo is executed immediately after remove-topo, ARP table of neighbor switches and hosts may still have entry of the old PTF MAC address. This would cause connectivity issue to the new PTF container for a while until the old PTF MAC address is expired. This workaround is to send out an ARPing from the PTF container querying mgmt_gw after new PTF container is deployed and attached to network. The ARPing request will be broadcasted to all neighbors on same LAN and will refresh ARP table of neighbors with new MAC address of new PTF. Signed-off-by: Xin Wang <[email protected]>
Contributor
|
does this only affect the mgmt network? It looks like you only ARP for the mgmt gw. |
Collaborator
Author
|
@lguohan Yes, it only affects the mgmt network. Without this workaround, we experienced connectivity issue to mgmt IP of re-deployed PTF container. |
liat-grozovik
approved these changes
Mar 28, 2019
yxieca
pushed a commit
that referenced
this pull request
Apr 5, 2019
… PTF container (#836) The PTF container will be destroyed if testbed-cli.sh remove-topo is executed. Run testbed-cli.sh add-topo will add a new PTF conainer. Usually the new PTF container will have a new MAC address. If add-topo is executed immediately after remove-topo, ARP table of neighbor switches and hosts may still have entry of the old PTF MAC address. This would cause connectivity issue to the new PTF container for a while until the old PTF MAC address is expired. This workaround is to send out an ARPing from the PTF container querying mgmt_gw after new PTF container is deployed and attached to network. The ARPing request will be broadcasted to all neighbors on same LAN and will refresh ARP table of neighbors with new MAC address of new PTF. Signed-off-by: Xin Wang <[email protected]>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
Make sure db_migrator is run after all config are loaded during (sonic-net#926) Vnet alias mapping (sonic-net#924) Changes to make lldp show command for multi-npu platforms. (sonic-net#914) [Mellanox] Fix thermal control issue: use natural sort for fan status and thermal status (sonic-net#836) [Mellanox] add document for thermal control related cli (sonic-net#832)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
The PTF container will be destroyed if testbed-cli.sh remove-topo is
executed. Run testbed-cli.sh add-topo will add a new PTF conainer.
Usually the new PTF container will have a new MAC address. If add-topo
is executed immediately after remove-topo, ARP table of neighbor
switches and hosts may still have entry of the old PTF MAC address. This
would cause connectivity issue to the new PTF container for a while
until the old PTF MAC address is expired.
This workaround is to send out an ARPing from the PTF container querying
mgmt_gw after new PTF container is deployed and attached to network.
The ARPing request will be broadcasted to all neighbors on same LAN and
will refresh ARP table of neighbors with new MAC address of new PTF.
Type of change
Approach
How did you do it?
Send an ARPing request from the PTF container after it is deployed and attached to network.
How did you verify/test it?
Tested on Mellanox platform
Any platform specific information?
No
Supported testbed topology if it's a new test case?
Documentation