aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_span.py
AgeCommit message (Expand)AuthorFilesLines
2020-03-16vxlan: vxlan/vxlan.api API cleanupJakub Grajciar1-4/+4
2019-11-05misc: Fix python scripts shebang lineRenato Botelho do Couto1-1/+1
2019-10-17tests: python3 changes for span and aclplugin testsnaramre1-1/+1
2019-08-20api: Cleanup APIs interface.apiJakub Grajciar1-1/+1
2019-04-18GRE: API updateNeale Ranns1-4/+8
2019-04-11Tests: Refactor tearDown show command logging, add lifecycle markers.Paul Vinciguerra1-2/+3
2019-03-29tests: test/vpp_l2.py fix missing name.Paul Vinciguerra1-2/+1
2019-03-15Revert "API: Cleanup APIs interface.api"Ole Trøan1-1/+1
2019-03-15API: Cleanup APIs interface.apiJakub Grajciar1-1/+1
2019-03-11vpp_papi_provider: Remove more wrapper functions.Ole Troan1-10/+8
2018-03-01Fix ERSPAN encap to set EN bits in the header and add test caseJohn Lo1-1/+71
2018-02-15Optimize GRE Tunnel and add support for ERSPAN encapJohn Lo1-1/+1
2017-10-18TEST,SPAN:add broadcast+QiniQ testsEyal Bari1-67/+137
2017-10-17TEST,SPAN: add rx+tx span testEyal Bari1-127/+78
2017-07-24SPAN:add l2 mirrorEyal Bari1-31/+317
2017-01-12make test: fix typoKlement Sekera1-1/+1
2017-01-11make test: improve documentation and PEP8 complianceKlement Sekera1-5/+6
2016-12-23make test: improve handling of packet capturesKlement Sekera1-5/+6
2016-12-05make test: fix missing log/packet messagesKlement Sekera1-21/+28
2016-11-15span: add feature (rx only) (VPP-185)Pavel Kotucek1-0/+186
setUp(self): super(TestPcap, self).setUp() def tearDown(self): super(TestPcap, self).tearDown() # This is a code coverage test, but it only runs for 0.3 seconds # might as well just run it... def test_pcap_unittest(self): """ PCAP Capture Tests """ cmds = ["loop create", "set int ip address loop0 11.22.33.1/24", "set int state loop0 up", "loop create", "set int ip address loop1 11.22.34.1/24", "set int state loop1 up", "set ip neighbor loop1 11.22.34.44 03:00:11:22:34:44", "packet-generator new {\n" " name s0\n" " limit 10\n" " size 128-128\n" " interface loop0\n" " tx-interface loop1\n" " node loop1-output\n" " buffer-flags ip4 offload\n" " buffer-offload-flags offload-ip-cksum offload-udp-cksum\n" " data {\n" " IP4: 1.2.3 -> dead.0000.0001\n" " UDP: 11.22.33.44 -> 11.22.34.44\n" " ttl 2 checksum 13\n" " UDP: 1234 -> 2345\n" " checksum 11\n" " incrementing 114\n" " }\n" "}", "pcap dispatch trace on max 100 buffer-trace pg-input 10", "pa en", "pcap dispatch trace off", "pcap trace rx tx max 1000 intfc any", "pa en", "pcap trace status", "pcap trace rx tx off", "classify filter pcap mask l3 ip4 src " "match l3 ip4 src 11.22.33.44", "pcap trace rx tx max 1000 intfc any file filt.pcap filter", "show cla t verbose 2", "show cla t verbose", "show cla t", "pa en", "pcap trace rx tx off", "classify filter pcap del mask l3 ip4 src"] for cmd in cmds: r = self.vapi.cli_return_response(cmd) if r.retval != 0: if hasattr(r, 'reply'): self.logger.info(cmd + " FAIL reply " + r.reply) else: self.logger.info(cmd + " FAIL retval " + str(r.retval)) self.assertTrue(os.path.exists('/tmp/dispatch.pcap')) self.assertTrue(os.path.exists('/tmp/rxtx.pcap')) self.assertTrue(os.path.exists('/tmp/filt.pcap')) os.remove('/tmp/dispatch.pcap') os.remove('/tmp/rxtx.pcap') os.remove('/tmp/filt.pcap') if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)