Skip to content
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

swss/orchagent : Fixed the case of removing ip address from the interface. #9

Merged
merged 1 commit into from
Mar 29, 2016
Merged
Changes from all commits
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
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