Skip to content

Commit

Permalink
Addressed minor comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhileshSamineni committed Aug 2, 2021
1 parent 37ed2cf commit d774cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfgmgr/intfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ bool IntfMgr::doIntfAddrTask(const vector<string>& keys,
FieldValueTuple f("family", ip_prefix.isV4() ? IPV4_NAME : IPV6_NAME);

// Don't send ipv4 link local config to AppDB and Orchagent
if ((ip_prefix.isV4() == false) or (ip_prefix.getIp().getAddrScope() != IpAddress::AddrScope::LINK_SCOPE))
if ((ip_prefix.isV4() == false) || (ip_prefix.getIp().getAddrScope() != IpAddress::AddrScope::LINK_SCOPE))
{
FieldValueTuple s("scope", "global");
fvVector.push_back(s);
Expand All @@ -758,7 +758,7 @@ bool IntfMgr::doIntfAddrTask(const vector<string>& keys,
setIntfIp(alias, "del", ip_prefix);

// Don't send ipv4 link local config to AppDB and Orchagent
if ((ip_prefix.isV4() == false) or (ip_prefix.getIp().getAddrScope() != IpAddress::AddrScope::LINK_SCOPE))
if ((ip_prefix.isV4() == false) || (ip_prefix.getIp().getAddrScope() != IpAddress::AddrScope::LINK_SCOPE))
{
m_appIntfTableProducer.del(appKey);
m_stateIntfTable.del(keys[0] + state_db_key_delimiter + keys[1]);
Expand Down

0 comments on commit d774cea

Please sign in to comment.