diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 11:15:24 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 11:15:24 +0200 |
commit | 0e43f80ab921633d786cd9f6e9823acb6a3a58d1 (patch) | |
tree | c60624003a91cb69782f41a0c595d5d6134e1dbb | |
parent | bgpd: Validate maximum length of software version when handling via dynamic caps (diff) | |
download | frr-0e43f80ab921633d786cd9f6e9823acb6a3a58d1.tar.xz frr-0e43f80ab921633d786cd9f6e9823acb6a3a58d1.zip |
tests: Make sure we have a valid FRRouting software version string
It can't begin with anything else, otherwise something is broken on the wire.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r-- | tests/topotests/bgp_dynamic_capability/test_bgp_dynamic_capability_software_version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/topotests/bgp_dynamic_capability/test_bgp_dynamic_capability_software_version.py b/tests/topotests/bgp_dynamic_capability/test_bgp_dynamic_capability_software_version.py index d1069a876..a653da465 100644 --- a/tests/topotests/bgp_dynamic_capability/test_bgp_dynamic_capability_software_version.py +++ b/tests/topotests/bgp_dynamic_capability/test_bgp_dynamic_capability_software_version.py @@ -111,7 +111,7 @@ def test_bgp_dynamic_capability_software_version(): if not adv and not rcv: return "" - pattern = "FRRouting/\\d.+" + pattern = "^FRRouting/\\d.+" if re.search(pattern, adv) and re.search(pattern, rcv): return adv, rcv except: |