Commit 3f7815c
authored
[action] [PR:18797] Refactor fdb_mac_move test to use actual port numbers (sonic-net#545)
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md
Please provide following information to help code review process a bit easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should reviewer start? background context?
- List any dependencies that are required for this change.
-->
Summary:
Refactor fdb_mac_move test to use actual port numbers from port_list for improved clarity and accuracy in ARP request handling.
### Type of change
<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->
- [x] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
- [ ] Skipped for non-supported platforms
- [ ] Test case improvement
### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [x] 202411
- [x] 202505
### Approach
#### What is the motivation for this PR?
Fix KeyError failure on fdb mac move test when trying to send arp request:
`> ptf.dataplane_instance.port_to_device = lambda port: ptf.dataplane_instance.port_device_map[port]
E KeyError: 1`
#### How did you do it?
Use actual port numbers from port_list instead of calculating indices
#### How did you verify/test it?
Ran the test
#### Any platform specific information?
#### Supported testbed topology if it's a new test case?
### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->1 parent 08a2e73 commit 3f7815c
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
0 commit comments