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

Method setUp

test/test_bfd.py:2498–2514  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2496 super(BFDFIBTestCase, cls).tearDownClass()
2497
2498 def setUp(self):
2499 super(BFDFIBTestCase, self).setUp()
2500 self.create_pg_interfaces(range(1))
2501 self.create_loopback_interfaces(1)
2502 self.loopback0 = self.lo_interfaces[0]
2503 self.loopback0.config_ip6()
2504 self.loopback0.admin_up()
2505
2506 self.vapi.want_bfd_events()
2507 self.pg0.enable_capture()
2508
2509 for i in self.pg_interfaces:
2510 i.admin_up()
2511 i.config_ip6()
2512 i.configure_ipv6_neighbors()
2513
2514 set_ipv6_pfx_route_info(self, self.pg0, BFD_IPV6_REMOTE_ADDR, True)
2515
2516 def tearDown(self):
2517 if not self.vpp_dead:

Callers

nothing calls this directly

Calls 8

set_ipv6_pfx_route_infoFunction · 0.85
create_pg_interfacesMethod · 0.80
config_ip6Method · 0.80
setUpMethod · 0.45
admin_upMethod · 0.45
enable_captureMethod · 0.45

Tested by

no test coverage detected