Skip to content

Commit

Permalink
fix build error for arm platform
Browse files Browse the repository at this point in the history
  • Loading branch information
shuaishang committed Nov 6, 2024
1 parent 6b87876 commit 290102b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ void RouteOrch::doTask(Consumer& consumer)
NextHopGroupKey& nhg = ctx.nhg;
vector<string> srv6_segv;
vector<string> srv6_src;
vector<string> srv6_vpn_sidv;
vector<string> srv6_vpn_sidv;
bool l3Vni = true;
uint32_t vni = 0;

Expand Down
6 changes: 1 addition & 5 deletions orchagent/srv6orch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ bool Srv6Orch::removeSrv6Nexthops(const std::vector<NextHopGroupKey> &nhgv)
{
if (!deleteSrv6Vpn(sr_nh.ip_address.to_string(), sr_nh.srv6_vpn_sid, getAggId(it_nhg)))
{
deleteAggId(it_nhg);
SWSS_LOG_ERROR("Failed to delete SRV6 vpn %s", sr_nh.to_string(false, true).c_str());
return false;
}
Expand Down Expand Up @@ -401,9 +400,6 @@ bool Srv6Orch::srv6Nexthops(const NextHopGroupKey &nhgKey, sai_object_id_t &next
{
if (!createSrv6Vpn(it->ip_address.to_string(), it->srv6_vpn_sid, getAggId(nhgKey)))
{
for (auto itt = nexthops.begin(); itt != it; ++itt)
deleteSrv6Vpn(itt->ip_address.to_string(), itt->srv6_vpn_sid, getAggId(nhgKey));
deleteAggId(nhgKey);
SWSS_LOG_ERROR("Failed to create SRV6 vpn %s", it->to_string(false, true).c_str());
return false;
}
Expand Down Expand Up @@ -1558,7 +1554,7 @@ task_process_status Srv6Orch::doTaskPicContextTable(const KeyOpFieldsValuesTuple
}
if (pci.nexthops.size() != pci.sids.size())
{
SWSS_LOG_ERROR("inconsistent number of endpoints(%lu) and vpn sids(%lu)",
SWSS_LOG_ERROR("inconsistent number of endpoints(%zu) and vpn sids(%zu)",
pci.nexthops.size(), pci.sids.size());
return task_failed;
}
Expand Down

0 comments on commit 290102b

Please sign in to comment.