Skip to content

Commit

Permalink
#4964: Modify traffexam to be able to emit LACP data units
Browse files Browse the repository at this point in the history
* Fixed wrong explanation in comment
  • Loading branch information
pkazlenka committed Feb 1, 2023
1 parent ec5496e commit 4ac1932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-python/lab-service/traffexam/kilda/traffexam/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __call__(self, iface, push_entry):
sendp(pkt, iface=iface.name, verbose=False, promisc=False)

def _encode(self, entry):
# entry -> b'10011010'
# entry, containing 8 boolean fields -> string representation of binary number '10011010'
actor_state_binary = functools.reduce(lambda a, b: a + b, map(self._bool_to_str, [entry.expired,
entry.defaulted,
entry.distributing,
Expand Down

0 comments on commit 4ac1932

Please sign in to comment.