X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_ipsec_tun_interface.py;h=7f11b7ebb1aaf5d64c203c8d4665c196aca913f1;hb=61717cc38;hp=97359b13281b8cce999a00b7f94385ad8a73b51f;hpb=c87b66c86201458c0475d50c6e93f1497f9eec2e;p=vpp.git diff --git a/test/vpp_ipsec_tun_interface.py b/test/vpp_ipsec_tun_interface.py index 97359b13281..7f11b7ebb1a 100644 --- a/test/vpp_ipsec_tun_interface.py +++ b/test/vpp_ipsec_tun_interface.py @@ -10,7 +10,8 @@ class VppIpsecTunInterface(VppTunnelInterface): remote_spi, crypto_alg, local_crypto_key, remote_crypto_key, integ_alg, local_integ_key, remote_integ_key, salt=0, udp_encap=False, - is_ip6=False): + is_ip6=False, + dst=None): super(VppIpsecTunInterface, self).__init__(test, parent_if) self.local_spi = local_spi self.remote_spi = remote_spi @@ -27,7 +28,9 @@ class VppIpsecTunInterface(VppTunnelInterface): else: self.local_ip = self.parent_if.local_ip4 self.remote_ip = self.parent_if.remote_ip4 - self.udp_encap = False + if dst: + self.remote_ip = dst + self.udp_encap = udp_encap def add_vpp_config(self): r = self.test.vapi.ipsec_tunnel_if_add_del(