bonding: toggle bond admin state may cause hw link state to down 97/28097/2
authorSteven Luong <sluong@cisco.com>
Tue, 28 Jul 2020 19:28:03 +0000 (12:28 -0700)
committersteven luong <sluong@cisco.com>
Tue, 28 Jul 2020 20:55:36 +0000 (20:55 +0000)
commitdc2abbe5ccd58d91793bfbe7de04f883057a67d3
treeb10b7e412d3a89646cf45fd789b340e7f55e8ebd
parentb04648762294f1a98366bd96d791656ad86fb9e1
bonding: toggle bond admin state may cause hw link state to down

For bond interface, we set hardware link state to up initially when
admin state is set to up. Thereafter, if we toggle the admin state to
down and up, we require at least one active member in the bond prior
to bringing up the hardware state which is inconsistent. The fix is to
remove the unnecessary condition.

This is a rework of the original proposed patch which is more complex
and could be tricky to get it right
https://gerrit.fd.io/r/c/vpp/+/27141

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I65f4fee55299b5b4d5645f6e05e1be15b46b73cd
src/vnet/bonding/device.c
test/test_bond.py