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

Method verify_bfd

test/test_bfd.py:861–869  ·  view source on GitHub ↗

Verify correctness of BFD layer.

(self, packet)

Source from the content-addressed store, hash-verified

859 )
860
861 def verify_bfd(self, packet):
862 """Verify correctness of BFD layer."""
863 bfd = packet[BFD]
864 self.test.assert_equal(bfd.version, 1, "BFD version")
865 self.test.assert_equal(
866 bfd.your_discriminator, self.my_discriminator, "BFD - your discriminator"
867 )
868 if self.sha1_key:
869 self.verify_sha1_auth(packet)
870
871
872def bfd_session_up(test):

Callers 1

wait_for_bfd_packetFunction · 0.80

Calls 2

verify_sha1_authMethod · 0.95
assert_equalMethod · 0.45

Tested by

no test coverage detected