mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 11:18:59 +00:00
Actually fix version comparison
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
b2764f904e
commit
dd43120e8e
@ -160,7 +160,8 @@ class Router(Node):
|
||||
kernel_version = re.search(r'([0-9]+)\.([0-9]+).*', platform.release())
|
||||
|
||||
if kernel_version:
|
||||
if float(kernel_version.group(1)) < 4 and float(kernel.version.group(2)) < 5:
|
||||
if float(kernel_version.group(1)) < 4 or
|
||||
(float(kernel_version.group(1)) == 4 and float(kernel.version.group(2)) < 5):
|
||||
print("LDP Test need Linux Kernel 4.5 minimum")
|
||||
return "LDP Test need Linux Kernel 4.5 minimum"
|
||||
# Add mpls modules to kernel if we use LDP
|
||||
|
Loading…
Reference in New Issue
Block a user