From cbb3243e32905ea994f3529be370d92045e9fdfd Mon Sep 17 00:00:00 2001 From: lzhecheng Date: Thu, 6 Aug 2020 04:41:40 +0000 Subject: [PATCH] Upgrade Python2 code in ovs-monitor-ipsec It is a workaround before upstream/ovs code update in ovs-monitor-ipsec. --- build/images/ovs/apply-patches.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/images/ovs/apply-patches.sh b/build/images/ovs/apply-patches.sh index b435a91f4d9..6868cfb6985 100755 --- a/build/images/ovs/apply-patches.sh +++ b/build/images/ovs/apply-patches.sh @@ -67,4 +67,8 @@ if version_get "$OVS_VERSION" "2.13.0"; then # but this seems like an acceptable workaround. sed -i 's/python3\.7/python3\.6/' debian/openvswitch-test.install sed -i 's/python3\.7/python3\.6/' debian/python3-openvswitch.install + + # OVS ovs-monitor-ipsec is Python2 code but others have upgraded to Python3. Before upstream updates, + # here ovs-monitor-ipsec should be modified. + curl https://github.com/lzhecheng/ovs/commit/869b06356e389079861962160e864df609d033e5.patch | git apply fi