lacp: Make lacp negotiation test hard-code aggregation keys.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Dec 2013 06:42:07 +0000 (22:42 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Dec 2013 19:08:33 +0000 (11:08 -0800)
commitb369c2334ed047cf4a4f0eed29ce35abaa1edbaf
tree5521cb511850e3caa23ab9c50b7f7039e76c1a9c
parent4f6b99348189f728a734aaf3b551410ee8b07f0c
lacp: Make lacp negotiation test hard-code aggregation keys.

The lacp implementation takes the aggregation key from the key or portid
of the first slave to be added to the lacp object.  When multiple slaves
are added initially to a lacp object (the most common case), which is the
"first" is arbitrary.  Until now, it seems that the "first" was actually
predictable enough for the tests to (unknowingly) rely on it, but an
upcoming commit will break that.  This commit fixes the test by forcing
a particular aggregation key for each lacp object.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
tests/lacp.at