aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/ContainerUtils.py
AgeCommit message (Expand)AuthorFilesLines
2021-05-28Framework: Telemetry retakepmikus1-0/+3
2021-03-22FIX: LXC imagepmikus1-2/+2
2020-12-17PAPI: Cache connected client instancesVratko Polak1-17/+101
2020-11-16Ansible: Remove vpp_device snergster dependencypmikus1-7/+7
2020-09-22Framework: Heapsize configurationpmikus1-4/+5
2020-04-22FIX: NF_density MAC addressesPeter Mikus1-16/+16
2020-01-29IPSEC: Change plugin namingPeter Mikus1-1/+1
2020-01-10Autogen: Generate also NIC drivers.Vratko Polak1-1/+1
2020-01-13FIX: NF_density testsPeter Mikus1-1/+1
2020-01-09FIX: Container testPeter Mikus1-8/+15
2019-12-16Remove supervisord dependency from containersPeter Mikus1-126/+34
2019-12-11FIX: NF_Density pipeline ip4 profilePeter Mikus1-3/+3
2019-12-11Introduce VPP-IPsec container tests.Ludovit Mikula1-10/+229
2019-12-05Deal with some "pylint: disable=" commentsVratko Polak1-5/+16
2019-11-28Python3: resources and librariesJan Gelety1-328/+362
2019-11-15FIX: LXC Container directory initializationPeter Mikus1-0/+2
2019-11-12FIX: Supervisor initializationPeter Mikus1-22/+21
2019-11-11FIX: Paths for new Docker imagesPeter Mikus1-8/+9
2019-10-07FIX: LXC tmpfs mountPeter Mikus1-5/+11
2019-09-18Fix errors found by pylintVratko Polak1-6/+4
2019-09-13FIX: Pylint + Container mountPeter Mikus1-2/+5
2019-09-10Refactor getting telemetryPeter Mikus1-3/+21
2019-07-23Add support for aarch64 container imagesjuraj.linkes1-3/+10
2019-07-17Use PapiSocketProvider for most PAPI callsVratko Polak1-0/+2
2019-07-11CSIT-1477: add 1n_tx2 VPP Devicejuraj.linkes1-1/+2
2019-06-04VAT-to-PAPI: ContainerUtilsTibor Frank1-18/+19
2019-03-04Rename to Constants.pyVratko Polak1-1/+1
2019-02-04CSIT-1416 Remove installation of vpp from containersPeter Mikus1-32/+18
2019-01-30FIX: Put back sleep to wait for container to boot.Peter Mikus1-1/+1
2019-01-30CSIT-1409 Implement pipeline configuration for l2bd with memif/ip4.Peter Mikus1-61/+147
2019-01-28CSIT-1403 Implement multichain configuration for l2bd with memif/ip4.Peter Mikus1-53/+47
2019-01-23Fix PyLint errorsTibor Frank1-9/+9
2019-01-23VPP_Device - add baseline tests - part IIb)Jan Gelety1-21/+69
2019-01-09CSIT-1389 Refactor current keywords for multichaining - CNFPeter Mikus1-35/+19
2018-09-05Fix various pylint violationsVratko Polak1-6/+2
2018-08-10CSIT-1156 Create container memif tests for 2-node topologyPeter Mikus1-1/+4
2018-08-10CSIT-1193 De-duplicate bootstrap scripts into onePeter Mikus1-3/+6
2018-07-27FIX: Interface up handlingPeter Mikus1-2/+10
2018-06-08CSIT-1081 Container VPP configuration refactorPeter Mikus1-28/+89
2018-05-14CSIT-1036 Expose option to install DKMS in containerPeter Mikus1-9/+3
2018-05-12CSIT-1079 Add multiple mount dirs into containerPeter Mikus1-49/+58
2018-04-25Fix warnings reported by gen_doc.shVratko Polak1-6/+6
2018-04-20FIX: Restart VPP in container before each testPeter Mikus1-0/+6
2018-04-19FIX: Memif tests failingPeter Mikus1-0/+3
2018-04-05FIX: Change plugin default behavior for Container tests Peter Mikus1-2/+1
2018-04-05Revert "FIX: Change plugin default behavior for Container tests"Peter Mikus1-1/+2
2018-04-05FIX: Change plugin default behavior for Container testsPeter Mikus1-2/+1
2018-03-30Change the default plugin behavior in perf testsPeter Mikus1-1/+2
2018-03-08CSIT-989 Fix: Reflect latest memif API changesPeter Mikus1-8/+14
2018-02-23FIX: LXC/DOCKER exclusive CPUPeter Mikus1-0/+17
">.logger.info(self.vapi.ppcli("show error")) self.logger.info(self.vapi.ppcli("show ipsec")) def test_tra_burst(self): """ ipsec v4 transport burst test """ try: self.test_tra_basic(count=257) finally: self.logger.info(self.vapi.ppcli("show error")) self.logger.info(self.vapi.ppcli("show ipsec")) class IpsecTunTests(object): def test_tun_basic(self, count=1): """ ipsec 4o4 tunnel basic test """ try: vpp_tun_sa, scapy_tun_sa = self.configure_sa_tun() send_pkts = self.gen_encrypt_pkts(scapy_tun_sa, self.tun_if, src=self.remote_tun_if_host, dst=self.pg1.remote_ip4, count=count) recv_pkts = self.send_and_expect(self.tun_if, send_pkts, self.pg1, count=count) for recv_pkt in recv_pkts: self.assert_equal(recv_pkt[IP].src, self.remote_tun_if_host) self.assert_equal(recv_pkt[IP].dst, self.pg1.remote_ip4) self.assert_packet_checksums_valid(recv_pkt) send_pkts = self.gen_pkts(self.pg1, src=self.pg1.remote_ip4, dst=self.remote_tun_if_host, count=count) recv_pkts = self.send_and_expect(self.pg1, send_pkts, self.tun_if, count=count) for recv_pkt in recv_pkts: decrypt_pkt = vpp_tun_sa.decrypt(recv_pkt[IP]) if not decrypt_pkt.haslayer(IP): decrypt_pkt = IP(decrypt_pkt[Raw].load) self.assert_equal(decrypt_pkt.src, self.pg1.remote_ip4) self.assert_equal(decrypt_pkt.dst, self.remote_tun_if_host) self.assert_packet_checksums_valid(decrypt_pkt) finally: self.logger.info(self.vapi.ppcli("show error")) self.logger.info(self.vapi.ppcli("show ipsec")) def test_tun_burst(self): """ ipsec 4o4 tunnel burst test """ try: self.test_tun_basic(count=257) finally: self.logger.info(self.vapi.ppcli("show error")) self.logger.info(self.vapi.ppcli("show ipsec")) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)