TIL setting the minimum required slaves for a bond in $FWDIR/conf/cpha_bond_ls_config.conf only applies to each VS, i.e. the config must be applied to each context. Modifying the file in VS0 is simply not enough.
So I made it easy. Vars are self-explanatory.
int=bond0
min=2
for vs in $(vsx stat -v | grep "| S " | awk '{print $1};'); do vsenv $vs; echo "$int $min" >> $FWDIR/conf/cpha_bond_ls_config.conf; done
to check:
for vs in $(vsx stat -v | grep "| S " | awk '{print $1};'); do vsenv $vs; cat $FWDIR/conf/cpha_bond_ls_config.conf; done
Enjoy 🙂