summaryrefslogtreecommitdiffstats
path: root/test/test_vxlan.py
AgeCommit message (Expand)AuthorFilesLines
2020-06-08vxlan: Fixed checksum caclculation offsetVladimir Isaev1-1/+2
2020-05-03tests: vpp_interface remove deprecated packed propertiesPaul Vinciguerra1-10/+6
2020-04-10geneve: Fix the byte swapping for the VNINeale Ranns1-2/+4
2020-03-16vxlan: vxlan/vxlan.api API cleanupJakub Grajciar1-52/+66
2019-12-14tests: changes for scapy 2.4.3 migrationsnaramre1-1/+2
2019-11-08tests: python3 use byte strings in raw()Ole Troan1-1/+1
2019-11-05misc: Fix python scripts shebang lineRenato Botelho do Couto1-1/+1
2019-06-18fib: fib api updatesNeale Ranns1-8/+13
2019-04-11Tests: Refactor tearDown show command logging, add lifecycle markers.Paul Vinciguerra1-5/+6
2019-04-10Tests Cleanup: Fix missing calls to setUpClass/tearDownClass.Paul Vinciguerra1-0/+4
2019-03-12Tests: Raise exception, don't raise string.Paul Vinciguerra1-1/+1
2019-03-11vpp_papi_provider: Remove more wrapper functions.Ole Troan1-35/+30
2018-12-10Test framework: StringIO fixes for Python3Ole Troan1-18/+2
2018-08-17VPP-1392: VXLAN fails with IP fragmentationOle Troan1-1/+46
2018-06-21test:vxlan over ipv6 testsEyal Bari1-1/+5
2017-12-13make "test-all" target pass againGabriel Ganne1-1/+1
2017-04-07VXLAN/TEST:validate vxlan del reply has valid sw_if_indexEyal Bari1-1/+3
2017-03-29VXLAN:validate mcast encapsulation ip/macEyal Bari1-3/+9
2017-01-25test adding and removing shared mcast dst tunnelsEyal Bari1-8/+39
2017-01-11vxlan unit test - minor fixesEyal Bari1-20/+19
2017-01-06Added basic tests for multicast vxlan tunnelsEyal Bari1-14/+107
2016-12-13make test: Use VXLAN built in scapy 2.3.3Matej Klotton1-2/+6
2016-12-05make test: fix missing log/packet messagesKlement Sekera1-2/+1
2016-10-26refactor test frameworkKlement Sekera1-54/+52
2016-10-03test: new test infrastructureDamjan Marion1-0/+102
">(self): r = self.test.vapi.ipsec_tunnel_if_add_del( self.local_ip, self.remote_ip, self.remote_spi, self.local_spi, self.crypto_alg, self.local_crypto_key, self.remote_crypto_key, self.integ_alg, self.local_integ_key, self.remote_integ_key, salt=self.salt) self.set_sw_if_index(r.sw_if_index) self.generate_remote_hosts() self.test.registry.register(self, self.test.logger) def remove_vpp_config(self): self.test.vapi.ipsec_tunnel_if_add_del( self.local_ip, self.remote_ip, self.remote_spi, self.local_spi, self.crypto_alg, self.local_crypto_key, self.remote_crypto_key, self.integ_alg, self.local_integ_key, self.remote_integ_key, is_add=0) def object_id(self): return "ipsec-tun-if-%d" % self._sw_if_index class VppIpsecGRETunInterface(VppTunnelInterface): """ VPP IPsec GRE Tunnel interface this creates headers IP / ESP / IP / GRE / payload i.e. it's GRE over IPSEC, rather than IPSEC over GRE. """ def __init__(self, test, parent_if, sa_out, sa_in): super(VppIpsecGRETunInterface, self).__init__(test, parent_if) self.sa_in = sa_in self.sa_out = sa_out def add_vpp_config(self): r = self.test.vapi.ipsec_gre_tunnel_add_del( self.parent_if.local_ip4n, self.parent_if.remote_ip4n, self.sa_out, self.sa_in) self.set_sw_if_index(r.sw_if_index) self.generate_remote_hosts() self.test.registry.register(self, self.test.logger) def remove_vpp_config(self): self.test.vapi.ipsec_gre_tunnel_add_del( self.parent_if.local_ip4n, self.parent_if.remote_ip4n, self.sa_out, self.sa_in, is_add=0) def query_vpp_config(self): ts = self.test.vapi.ipsec_gre_tunnel_dump(sw_if_index=0xffffffff) for t in ts: if t.tunnel.sw_if_index == self._sw_if_index: return True return False def __str__(self): return self.object_id() def object_id(self): return "ipsec-gre-tun-if-%d" % self._sw_if_index