From b98ba3fb432c778654e8f735300439fe14aa0f9e Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Sat, 21 Dec 2024 08:54:17 +0530 Subject: [PATCH] Update route_check_test_data.py --- tests/route_check_test_data.py | 137 --------------------------------- 1 file changed, 137 deletions(-) diff --git a/tests/route_check_test_data.py b/tests/route_check_test_data.py index c5a606cb90..26d39a5ca9 100644 --- a/tests/route_check_test_data.py +++ b/tests/route_check_test_data.py @@ -493,79 +493,6 @@ } }, }, - "11": { - DESCR: "failure test case, missing FRR routes", - MULTI_ASIC: False, - NAMESPACE: [''], - ARGS: "route_check -m INFO -i 1000", - PRE: { - DEFAULTNS: { - APPL_DB: { - ROUTE_TABLE: { - "0.0.0.0/0" : { "ifname": "portchannel0" }, - "10.10.196.12/31" : { "ifname": "portchannel0" }, - }, - INTF_TABLE: { - "PortChannel1013:10.10.196.24/31": {}, - "PortChannel1023:2603:10b0:503:df4::5d/126": {}, - "PortChannel1024": {} - } - }, - ASIC_DB: { - RT_ENTRY_TABLE: { - RT_ENTRY_KEY_PREFIX + "10.10.196.12/31" + RT_ENTRY_KEY_SUFFIX: {}, - RT_ENTRY_KEY_PREFIX + "10.10.196.24/32" + RT_ENTRY_KEY_SUFFIX: {}, - RT_ENTRY_KEY_PREFIX + "2603:10b0:503:df4::5d/128" + RT_ENTRY_KEY_SUFFIX: {}, - RT_ENTRY_KEY_PREFIX + "0.0.0.0/0" + RT_ENTRY_KEY_SUFFIX: {} - } - }, - }, - }, - FRR_ROUTES: { - DEFAULTNS: { - "0.0.0.0/0": [ - { - "prefix": "0.0.0.0/0", - "vrfName": "default", - "protocol": "bgp", - "selected": True, - "offloaded": True, - }, - ], - "10.10.196.12/31": [ - { - "prefix": "10.10.196.12/31", - "vrfName": "default", - "protocol": "bgp", - "selected": True, - }, - ], - "1.1.1.0/24": [ - { - "prefix": "1.1.1.0/24", - "vrfName": "default", - "protocol": "static", - "selected": True, - }, - ], - "10.10.196.24/31": [ - { - "protocol": "connected", - "selected": True, - }, - ], - }, - }, - RESULT: { - DEFAULTNS: { - "missed_FRR_routes": [ - {"prefix": "10.10.196.12/31", "vrfName": "default", "protocol": "bgp", "selected": True}, - {"prefix": "1.1.1.0/24", "vrfName": "default", "protocol": "static", "selected": True}, - ], - }, - }, - RET: -1, - }, "12": { DESCR: "skip bgp routes offloaded check, if not selected as best", MULTI_ASIC: False, @@ -916,70 +843,6 @@ ARGS: "route_check -n random -m INFO -i 1000", RET: -1, }, - "21": { - DESCR: "multi-asic failure test case, missing FRR routes", - MULTI_ASIC: True, - NAMESPACE: ['asic0', 'asic1'], - ARGS: "route_check -n asic1 -m INFO -i 1000", - PRE: { - ASIC1: { - APPL_DB: { - ROUTE_TABLE: { - "0.0.0.0/0" : { "ifname": "portchannel0" }, - "10.10.196.12/31" : { "ifname": "portchannel0" }, - }, - INTF_TABLE: { - "PortChannel1013:10.10.196.24/31": {}, - "PortChannel1023:2603:10b0:503:df4::5d/126": {}, - "PortChannel1024": {} - } - }, - ASIC_DB: { - RT_ENTRY_TABLE: { - RT_ENTRY_KEY_PREFIX + "10.10.196.12/31" + RT_ENTRY_KEY_SUFFIX: {}, - RT_ENTRY_KEY_PREFIX + "10.10.196.24/32" + RT_ENTRY_KEY_SUFFIX: {}, - RT_ENTRY_KEY_PREFIX + "2603:10b0:503:df4::5d/128" + RT_ENTRY_KEY_SUFFIX: {}, - RT_ENTRY_KEY_PREFIX + "0.0.0.0/0" + RT_ENTRY_KEY_SUFFIX: {} - } - }, - }, - }, - FRR_ROUTES: { - ASIC1: { - "0.0.0.0/0": [ - { - "prefix": "0.0.0.0/0", - "vrfName": "default", - "protocol": "bgp", - "selected": True, - "offloaded": True, - }, - ], - "10.10.196.12/31": [ - { - "prefix": "10.10.196.12/31", - "vrfName": "default", - "protocol": "bgp", - "selected": True, - }, - ], - "10.10.196.24/31": [ - { - "protocol": "connected", - "selected": True, - }, - ], - }, - }, - RESULT: { - ASIC1: { - "missed_FRR_routes": [ - {"prefix": "10.10.196.12/31", "vrfName": "default", "protocol": "bgp", "selected": True} - ], - }, - }, - RET: -1, - }, "22": { DESCR: "basic good one on single asic, bgp disabled", MULTI_ASIC: False,