-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[teamsyncd]: Add team_ifindex2ifname return value check #500
Conversation
teamsyncd/teamsync.cpp
Outdated
/* Skip if interface is not found */ | ||
if (!team_ifindex2ifname(m_team, ifindex, ifname, MAX_IFNAME)) | ||
{ | ||
SWSS_LOG_INFO("Interface ifindex:%d is not found", ifindex); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%u
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
team member interface ifindex(%u) cannot be found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Without the return value check, it is possible that ifname is empty due to interface not found. Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
Without the return value check, it is possible that ifname is empty due to interface not found. Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
Without the return value check, it is possible that ifname is empty due to interface not found. Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
…#500) * Add support for port remove and port create * Fix aspell dictionary * Remove invalid comments * fix merge issues
Without the return value check, it is possible that ifname is
empty due to interface not found.
Signed-off-by: Shu0T1an ChenG shuche@microsoft.com