summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-09-29 11:15:24 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-09-29 11:15:24 +0200
commit0e43f80ab921633d786cd9f6e9823acb6a3a58d1 (patch)
treec60624003a91cb69782f41a0c595d5d6134e1dbb
parentbgpd: Validate maximum length of software version when handling via dynamic caps (diff)
downloadfrr-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.py2
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: