2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

ovs-monitor-ipsec: LibreSwan autodetect version.

Previously a change was made to LibreSwan necessitating the detection
of version numbers. However, this change didn't properly account for all
possible output from "ipsec version". When installed from the git
repository, LibreSwan will report versions differently then when
installed from a package.

Fixes: 3ddb31f604 ("ovs-monitor-ipsec: LibreSwan autodetect paths.")
Signed-off-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: Simon Horman <horms@ovn.org>
This commit is contained in:
Mike Pattrick
2024-06-28 00:24:05 -04:00
committed by Simon Horman
parent c1dce72a37
commit 802df1e37b

View File

@@ -464,7 +464,7 @@ conn prevent_unencrypted_vxlan
encoding="latin1")
pout, perr = proc.communicate()
v = re.match("^Libreswan (.*)$", pout)
v = re.match("^Libreswan v?(.*)$", pout)
try:
version = int(v.group(1).split(".")[0])
except: