mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-16 20:43:41 +00:00
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>
This commit is contained in:
parent
5e8a8d0ed6
commit
0e43f80ab9
@ -111,7 +111,7 @@ def test_bgp_dynamic_capability_software_version():
|
|||||||
if not adv and not rcv:
|
if not adv and not rcv:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
pattern = "FRRouting/\\d.+"
|
pattern = "^FRRouting/\\d.+"
|
||||||
if re.search(pattern, adv) and re.search(pattern, rcv):
|
if re.search(pattern, adv) and re.search(pattern, rcv):
|
||||||
return adv, rcv
|
return adv, rcv
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user