Skip to content

Commit 426b6aa

Browse files
authored
[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 <[email protected]>
1 parent 17e7871 commit 426b6aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/iccpd/src/iccp_cmd_show.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ int iccp_mclag_config_dump(char * *buf, int *num, int mclag_id)
9999
state_info.role = csm->role_type;
100100

101101
str_size = MCLAGDCTL_PORT_MEMBER_BUF_LEN;
102+
len = 0;
102103

103104
LIST_FOREACH(lif_po, &(MLACP(csm).lif_list), mlacp_next)
104105
{

0 commit comments

Comments
 (0)