IPsec: fix SA policy cli 67/31667/3
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Wed, 17 Mar 2021 07:27:33 +0000 (08:27 +0100)
committerPeter Mikus <pmikus@cisco.com>
Wed, 17 Mar 2021 11:01:43 +0000 (11:01 +0000)
The tunnel specification in "ipsec sa add" has changed. Update the cli
the reflect this.

Change-Id: I11d788798419b96b1289c53052eedb9767252df6
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
resources/libraries/python/IPsecUtil.py

index a19ec62..c99105a 100644 (file)
@@ -479,8 +479,8 @@ class IPsecUtil:
                     integ = f"integ-alg {integ_alg.alg_name} " \
                         f"integ-key {integ_key.hex()}" \
                         if integ_alg else u""
-                    tunnel = f"tunnel-src {src_addr + i * addr_incr} " \
-                        f"tunnel-dst {dst_addr + i * addr_incr}" \
+                    tunnel = f"tunnel src {src_addr + i * addr_incr} " \
+                        f"tunnel dst {dst_addr + i * addr_incr}" \
                         if tunnel_src and tunnel_dst else u""
                     conf = f"exec ipsec sa add {sad_id + i} esp spi {spi + i} "\
                         f"crypto-alg {crypto_alg.alg_name} " \

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.