mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-16 11:34:14 +00:00
Merge pull request #14756 from opensourcerouting/fix/bgpd_dynamic_cap_addpath_topotest
tests: Check received prefixes before immediately sending dynamic capabilities
This commit is contained in:
commit
314a98d2b4
@ -70,6 +70,11 @@ def test_bgp_dynamic_capability_addpath():
|
||||
}
|
||||
},
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
return topotest.json_cmp(output, expected)
|
||||
@ -108,6 +113,11 @@ def test_bgp_dynamic_capability_addpath():
|
||||
}
|
||||
},
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
"messageStats": {
|
||||
"notificationsRecv": 0,
|
||||
"capabilityRecv": 1,
|
||||
|
@ -68,6 +68,11 @@ def test_bgp_dynamic_capability_graceful_restart():
|
||||
"gracefulRestart": "advertisedAndReceived",
|
||||
"longLivedGracefulRestart": "advertisedAndReceived",
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
"gracefulRestartInfo": {
|
||||
"nBit": True,
|
||||
"timers": {
|
||||
@ -116,6 +121,11 @@ def test_bgp_dynamic_capability_graceful_restart():
|
||||
"gracefulRestart": "advertisedAndReceived",
|
||||
"longLivedGracefulRestart": "advertisedAndReceived",
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
"gracefulRestartInfo": {
|
||||
"nBit": True,
|
||||
"timers": {
|
||||
|
@ -64,6 +64,11 @@ def test_bgp_dynamic_capability_orf():
|
||||
"neighborCapabilities": {
|
||||
"dynamic": "advertisedAndReceived",
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
return topotest.json_cmp(output, expected)
|
||||
@ -116,6 +121,7 @@ def test_bgp_dynamic_capability_orf():
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 1,
|
||||
"afDependentCap": {
|
||||
"orfPrefixList": {
|
||||
"sendMode": "advertisedAndReceived",
|
||||
|
@ -66,6 +66,11 @@ def test_bgp_dynamic_capability_role():
|
||||
"neighborCapabilities": {
|
||||
"dynamic": "advertisedAndReceived",
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
return topotest.json_cmp(output, expected)
|
||||
@ -108,6 +113,11 @@ def test_bgp_dynamic_capability_role():
|
||||
"dynamic": "advertisedAndReceived",
|
||||
"role": "advertisedAndReceived",
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
"messageStats": {
|
||||
"notificationsRecv": 0,
|
||||
"capabilityRecv": 1,
|
||||
|
@ -68,6 +68,11 @@ def test_bgp_dynamic_capability_software_version():
|
||||
"receivedSoftwareVersion": None,
|
||||
},
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
return topotest.json_cmp(output, expected)
|
||||
@ -129,6 +134,11 @@ def test_bgp_dynamic_capability_software_version():
|
||||
"receivedSoftwareVersion": rcv,
|
||||
},
|
||||
},
|
||||
"addressFamilyInfo": {
|
||||
"ipv4Unicast": {
|
||||
"acceptedPrefixCounter": 3,
|
||||
}
|
||||
},
|
||||
"messageStats": {
|
||||
"notificationsRecv": 0,
|
||||
"capabilityRecv": 1,
|
||||
|
Loading…
Reference in New Issue
Block a user