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

Function bfd_stats_diff

test/test_bfd.py:1069–1074  ·  view source on GitHub ↗
(stats_before, stats_after)

Source from the content-addressed store, hash-verified

1067
1068
1069def bfd_stats_diff(stats_before, stats_after):
1070 rx = stats_after.rx - stats_before.rx
1071 rx_echo = stats_after.rx_echo - stats_before.rx_echo
1072 tx = stats_after.tx - stats_before.tx
1073 tx_echo = stats_after.tx_echo - stats_before.tx_echo
1074 return BFDStats(rx, rx_echo, tx, tx_echo)
1075
1076
1077@parameterized_class(

Callers 4

test_echo_looped_backMethod · 0.85
test_echoMethod · 0.85
test_echo_looped_backMethod · 0.85
test_echoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected