-
Notifications
You must be signed in to change notification settings - Fork 273
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
[vslib] Add StateBase function for MACsec #717
Conversation
Signed-off-by: Ze Gan <[email protected]>
8c3c3d7
to
f3cbdc0
Compare
retest vs please |
1 similar comment
retest vs please |
Signed-off-by: Ze Gan <[email protected]>
Signed-off-by: Ze Gan <[email protected]>
retest vs please |
Signed-off-by: Ze Gan <[email protected]>
vslib/src/SwitchStateBaseMACsec.cpp
Outdated
|
||
if (macsecAttr.m_info == nullptr) | ||
{ | ||
// The fail log has been recordedin findHostInterfaceInfoByPort |
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.
i think this message should be here insted of line 383, since this functions expects info to be not null, but findHostInterfaceInfoByPort just searches for it, and whether it found or not should not be error, please move that message here and remove from findHostInterfaceInfoByPort,
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.
Agree
|
||
macsecAttr.m_sci = sciHexStr.str(); | ||
|
||
if (macsecAttr.m_sci.length() < MACSEC_SCI_LENGTH) |
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.
should this be "==" ?
vslib/src/SwitchStateBaseMACsec.cpp
Outdated
|
||
if (macsecAttr.m_info == nullptr) | ||
{ | ||
// The fail log has been recordedin findHostInterfaceInfoByPort |
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.
also this message should be here
vslib/src/SwitchStateBaseMACsec.cpp
Outdated
|
||
if (macsecAttr.m_info == nullptr) | ||
{ | ||
// The fail log has been recordedin findHostInterfaceInfoByPort |
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.
also message here
vslib/src/SwitchStateBaseMACsec.cpp
Outdated
// The fail log has been recorded at loadMACsecAttr | ||
macsecAttrs.pop_back(); | ||
} | ||
|
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.
remove empty line
vslib/src/SwitchStateBaseMACsec.cpp
Outdated
|
||
auto ret = get_internal(SAI_OBJECT_TYPE_MACSEC_SA, serializedObjectId, attrCount, attrList); | ||
|
||
if (ret != SAI_STATUS_SUCCESS) |
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.
CHECK_STATUS ?
Signed-off-by: Ze Gan <[email protected]>
[vslib] Add StateBase function for MACsec
Signed-off-by: Ze Gan [email protected]