2.69. test_reassembly module¶
-
class
test_reassembly.
TestFIFReassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
Fragments in fragments reassembly
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
test_fif4
()¶ Fragments in fragments (4o4)
-
test_fif6
()¶ Fragments in fragments (6o6)
-
verify_capture
(capture, ip_class, dropped_packet_indexes=[])¶ Verify captured packet stream.
Parameters: capture (list) – Captured packet stream.
-
-
class
test_reassembly.
TestIPv4Reassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv4 Reassembly
-
classmethod
create_fragments
()¶
-
classmethod
create_stream
(packet_sizes, packet_count=257)¶ Create input packet stream for defined interface.
Parameters: packet_sizes (list) – Required packet sizes.
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
test_disabled
()¶ reassembly disabled
-
test_duplicates
()¶ duplicate fragments
-
test_overlap1
()¶ overlapping fragments case #1
-
test_overlap2
()¶ overlapping fragments case #2
-
test_random
()¶ random order reassembly
-
test_reassembly
()¶ basic reassembly
-
test_reversed
()¶ reverse order reassembly
-
test_timeout_cleanup
()¶ timeout (cleanup)
-
test_timeout_inline
()¶ timeout (inline)
-
verify_capture
(capture, dropped_packet_indexes=[])¶ Verify captured packet stream.
Parameters: capture (list) – Captured packet stream.
-
classmethod
-
class
test_reassembly.
TestIPv6Reassembly
(methodName='runTest')¶ Bases:
framework.VppTestCase
IPv6 Reassembly
-
classmethod
create_fragments
()¶
-
classmethod
create_stream
(packet_sizes, packet_count=257)¶ Create input packet stream for defined interface.
Parameters: packet_sizes (list) – Required packet sizes.
-
setUp
()¶ Test setup - force timeout on existing reassemblies
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
test_disabled
()¶ reassembly disabled
-
test_duplicates
()¶ duplicate fragments
-
test_invalid_frag_size
()¶ fragment size not a multiple of 8
-
test_invalid_packet_size
()¶ total packet size > 65535
-
test_missing_upper
()¶ missing upper layer
-
test_overlap1
()¶ overlapping fragments case #1
-
test_overlap2
()¶ overlapping fragments case #2
-
test_random
()¶ random order reassembly
-
test_reassembly
()¶ basic reassembly
-
test_reversed
()¶ reverse order reassembly
-
test_timeout_cleanup
()¶ timeout (cleanup)
-
test_timeout_inline
()¶ timeout (inline)
-
verify_capture
(capture, dropped_packet_indexes=[])¶ Verify captured packet strea .
Parameters: capture (list) – Captured packet stream.
-
classmethod