Skip to content

Commit

Permalink
Update route_check_test_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abdosi authored Dec 21, 2024
1 parent 9e0570b commit b98ba3f
Showing 1 changed file with 0 additions and 137 deletions.
137 changes: 0 additions & 137 deletions tests/route_check_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b98ba3f

Please sign in to comment.