Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vslib/MACsecManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ bool MACsecManager::update_macsec_sa_pn(
ostream << " ssci " << attr.m_ssci;
}

ostream << " pn " << pn;
ostream << ( attr.is_xpn() ? " xpn " : " pn " ) << pn;

SWSS_LOG_NOTICE("%s", ostream.str().c_str());

Expand Down Expand Up @@ -447,7 +447,7 @@ bool MACsecManager::create_macsec_egress_sa(
<< shellquote(attr.m_macsecName)
<< " tx sa "
<< attr.m_an
<< " pn "
<< ( attr.is_xpn() ? " xpn " : " pn ")
<< attr.m_pn
<< ( attr.is_xpn() ? " ssci " : "" )
<< ( attr.is_xpn() ? std::to_string(attr.m_ssci) : "" )
Expand Down Expand Up @@ -484,7 +484,7 @@ bool MACsecManager::create_macsec_ingress_sa(
<< attr.m_sci
<< " sa "
<< attr.m_an
<< " pn "
<< ( attr.is_xpn() ? " xpn " : " pn " )
<< attr.m_pn
<< ( attr.is_xpn() ? " ssci " : "" )
<< ( attr.is_xpn() ? std::to_string(attr.m_ssci) : "" )
Expand Down