From: Christos Sfakianakis <csfakian(a)redhat.com>
In the case of 'ipsec_esp_aead', use the new integer division operator
for the key construction.
Signed-off-by: Christos Sfakianakis <csfakian(a)redhat.com>
---
lnst/Recipes/ENRT/XfrmTools.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Recipes/ENRT/XfrmTools.py b/lnst/Recipes/ENRT/XfrmTools.py
index 468259e..fd226fc 100644
--- a/lnst/Recipes/ENRT/XfrmTools.py
+++ b/lnst/Recipes/ENRT/XfrmTools.py
@@ -2,7 +2,7 @@ from lnst.Common.LnstError import LnstError
def generate_key(length):
key = "0x"
- key = key + (length/8) * "0b"
+ key = key + (length//8) * "0b"
return key
def configure_ipsec_esp_aead(m1, ip1, m2, ip2, algo, algo_key, icv_len,
--
2.17.1