[warm-reboot] Routing change (add/del) during warm boot automation#1152
[warm-reboot] Routing change (add/del) during warm boot automation#1152neethajohn merged 6 commits intosonic-net:masterfrom
Conversation
|
@neethajohn this is a great change. I think with the code you have, you could also support adding route during warm reboot and clean up after test? |
@yxieca. That's the way I am doing it currently. if I am passing the 'routing_add:cnt' tag then 'cnt' number of v4 and v6 routes are added during warm reboot and cleaned up at the end of the test (calling the revert() function) |
|
@neethajohn I thought that was in the code. but PR comments made me think otherwise. So in either case, could this infrastructure support both route add and route delete test? |
@yxieca, this infrastructure supports both route add and del. I have included both the cases in the test as well |
Signed-off-by: Neetha John <[email protected]>
Signed-off-by: Neetha John <[email protected]>
Signed-off-by: Neetha John <[email protected]>
Signed-off-by: Neetha John <[email protected]>
Signed-off-by: Neetha John <[email protected]>
Signed-off-by: Neetha John <[email protected]>
b07d2f1 to
30ebd4a
Compare
…1152) * Automation for routing change(add/del) during warm-reboot Signed-off-by: Neetha John <[email protected]>
fd3e0174971599fa7f9d73ff1a997583eb090fd5 (HEAD -> 201911, origin/201911) [Multi-asic] Enhanced Feature Table configuration for multi-asic platforms (sonic-net#1152) 12f03b195609c07762d8c8efd80dc548ddd4fe78 Add FW dump with new SAI implementation (sonic-net#1298) Signed-off-by: Abhishek Dosi <[email protected]>
Why I did it cf9a66b - Fix issue: bulk counter feature is disabled ([Broadcom]: Update Broadcom SDK/SAI package sonic-net#1205) (4 hours ago) [Lior Avramov] 8b1583b - [Dual-ToR] update sai.profile with SAI_ADDITIONAL_MAC_ENABLED attribute if corresponding arg passed to syncd ([Makefile]: variable ENABLE_SYNCD_RPC is always empty string sonic-net#1201) (4 hours ago) [Andriy Yurkiv] 50d8e21 - [syncd]: Enable port bulk API ([platform] Accton AS7712-32X. Update for sensors and sfputil. sonic-net#1197) (4 hours ago) [Nazarii Hnydyn] a72438a - Use new value of STATE_DB FAST_REBOOT entry ([device/accton]: Update Accton-AS5712_54X sonic-net#1196) (4 hours ago) [Aryeh Feigin] d78ce86 - validation support for SAI_ATTR_VALUE_TYPE_JSON ([installer] FIX. ONIE installer error issue: sonic-net#1152) (4 hours ago) [svshah-intel] How I did it How to verify it
Description of PR
Testcases for adding and deleting routes during warm-boot. The testcase flow is as follows
Routes add case
Route delete case
Type of change
Approach
How did you do it?
- inboot-list contains all the operations that will be done during each warm reboot cycle
(each item is of type 'inboot_oper:number of routes per address family')
- extract the next hop for ipv4 and ipv6 routes
- method to add/del routes
How did you verify/test it?
Ran the routing change test on t0-64 topology and it passed
Ran regressions on warm-reboot, fast-reboot and preboot list test and they all passed