Skip to content

Commit

Permalink
Merge pull request #9 from garyachy/orchagent-fixes
Browse files Browse the repository at this point in the history
orchagent : Fixing the case of removing IP address from the interface
  • Loading branch information
stcheng committed Mar 29, 2016
2 parents f8e245c + d2864a6 commit f604edc
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,6 @@ void IntfsOrch::doTask()
continue;
}

IpPrefix ip_prefix;
for (auto it = kfvFieldsValues(t).begin();
it != kfvFieldsValues(t).end(); it++)
{
if (fvField(*it) == "ip_prefix")
{
ip_prefix = IpPrefix(fvValue(*it));
}
}

sai_unicast_route_entry_t unicast_route_entry;
unicast_route_entry.vr_id = gVirtualRouterId;
unicast_route_entry.destination.addr_family = SAI_IP_ADDR_FAMILY_IPV4;
Expand All @@ -159,7 +149,11 @@ void IntfsOrch::doTask()
it++;
}
else
{
SWSS_LOG_NOTICE("Remove packet action trap route ip:%s\n", ip_prefix.getIp().to_string().c_str());
m_intfs.erase(alias);
it = m_toSync.erase(it);
}
}
}
}
Expand Down

0 comments on commit f604edc

Please sign in to comment.