[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:
parent
17e78715ae
commit
426b6aaf5b
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user