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

Method setUp

test/test_sflow_drop.py:24–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 super(SFlowDropTestCase, cls).tearDownClass()
23
24 def setUp(self):
25 self.create_pg_interfaces(range(2)) # create pg0 and pg1
26 for i in self.pg_interfaces:
27 i.admin_up() # put the interface up
28 i.config_ip4() # configure IPv4 address on the interface
29 i.resolve_arp() # resolve ARP, so that we know VPP MAC
30
31 def tearDown(self):
32 for i in self.pg_interfaces:

Callers

nothing calls this directly

Calls 4

create_pg_interfacesMethod · 0.80
admin_upMethod · 0.45
config_ip4Method · 0.45
resolve_arpMethod · 0.45

Tested by

no test coverage detected