aboutsummaryrefslogtreecommitdiff
path: root/lib/lacp.c
diff options
context:
space:
mode:
authorAnoob Soman <anoob.soman@citrix.com>2013-01-02 17:23:07 +0000
committerEthan Jackson <ethan@nicira.com>2013-01-02 15:24:19 -0800
commitab3a09c87863526ca31a36fc21877c2ce505e447 (patch)
treed5df74fd1922f3367f8e6f04996f2e0b7fa25850 /lib/lacp.c
parentfded7f983c74ec348d577f23119ded25bde23d74 (diff)
lacp: Fix dumping of the aggregation key.
While dumping lacp information using ovs-appctl, the "aggregation key" field displays the port_id even though the aggregation key is set using "other-config:lacp-aggregation-key". Signed-off-by: Anoob Soman <anoob.soman@citrix.com> Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/lacp.c')
-rw-r--r--lib/lacp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lacp.c b/lib/lacp.c
index 374d915a..96857ea5 100644
--- a/lib/lacp.c
+++ b/lib/lacp.c
@@ -750,7 +750,9 @@ lacp_print_details(struct ds *ds, struct lacp *lacp)
ds_put_format(ds, "\tsys_priority: %u\n", lacp->sys_priority);
ds_put_cstr(ds, "\taggregation key: ");
if (lacp->key_slave) {
- ds_put_format(ds, "%u", lacp->key_slave->port_id);
+ ds_put_format(ds, "%u", lacp->key_slave->key
+ ? lacp->key_slave->key
+ : lacp->key_slave->port_id);
} else {
ds_put_cstr(ds, "none");
}