A feature has been created to manage this behavior. The feature allows the local chassis egress ports to be preferred over the bonding ports. The local LAG ports preference can set using a choice of 1 of 4 types, none (default), weak, strong, or all-local.
set lacp outportLocalPreference [none | weak | strong | all-local]
- None: Do not prefer lag ports based on chassis
- Weak: Use a weak preference towards ports on local chassis
- Strong: Use a strong preference towards ports on local chassis
- All-local: Force all packets to be hashed to local chassis ports, if available