[iccpd] Fix the bug of iccp cmd show. (#5214)

The cmd "mclagdctl dump state" would goes wrong when there are two or more mclag_groups configured. The field "MCLAG Interface" can not be displayed in some group.

Signed-off-by: Sun Dandan <sundandan@asterfusion.com>
This commit is contained in:
sdddean 2020-09-02 04:07:13 +08:00 committed by GitHub
parent 17e78715ae
commit 426b6aaf5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ int iccp_mclag_config_dump(char * *buf, int *num, int mclag_id)
state_info.role = csm->role_type;
str_size = MCLAGDCTL_PORT_MEMBER_BUF_LEN;
len = 0;
LIST_FOREACH(lif_po, &(MLACP(csm).lif_list), mlacp_next)
{