MCPcopy Create free account
hub / github.com/FDio/vpp / setUpClass

Method setUpClass

test/test_reassembly.py:38–55  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

36
37 @classmethod
38 def setUpClass(cls):
39 super().setUpClass()
40
41 cls.create_pg_interfaces([0, 1])
42 cls.src_if = cls.pg0
43 cls.dst_if = cls.pg1
44
45 # setup all interfaces
46 for i in cls.pg_interfaces:
47 i.admin_up()
48 i.config_ip4()
49 i.resolve_arp()
50
51 # packet sizes
52 cls.packet_sizes = [64, 512, 1518, 9018]
53 cls.padding = " abcdefghijklmn"
54 cls.create_stream(cls.packet_sizes)
55 cls.create_fragments()
56
57 @classmethod
58 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 7

create_pg_interfacesMethod · 0.80
setUpClassMethod · 0.45
admin_upMethod · 0.45
config_ip4Method · 0.45
resolve_arpMethod · 0.45
create_streamMethod · 0.45
create_fragmentsMethod · 0.45

Tested by

no test coverage detected