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

Method test_session_up

test/test_bfd.py:1168–1179  ·  view source on GitHub ↗

bring BFD session up

(self)

Source from the content-addressed store, hash-verified

1166 super(BFD4TestCase, self).tearDown()
1167
1168 def test_session_up(self):
1169 """bring BFD session up"""
1170 bfd_session_up(self)
1171 if self.multihop:
1172 bfd_udp4_sessions = self.statistics[BFD_STATS_V4_MH_PATH]
1173 bfd_udp6_sessions = self.statistics[BFD_STATS_V6_MH_PATH]
1174 else:
1175 bfd_udp4_sessions = self.statistics[BFD_STATS_V4_SH_PATH]
1176 bfd_udp6_sessions = self.statistics[BFD_STATS_V6_SH_PATH]
1177
1178 self.assert_equal(bfd_udp4_sessions - self.bfd_udp4_sessions, 1)
1179 self.assert_equal(bfd_udp6_sessions, self.bfd_udp6_sessions)
1180
1181 def test_session_up_by_ip(self):
1182 """bring BFD session up - first frame looked up by address pair"""

Callers

nothing calls this directly

Calls 2

bfd_session_upFunction · 0.85
assert_equalMethod · 0.45

Tested by

no test coverage detected