Skip to content

Commit

Permalink
Remove Flex Counter before removing the ENI object
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
  • Loading branch information
vivekrnv committed Sep 14, 2024
1 parent 2ed0439 commit 1b57392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 366 deletions.
5 changes: 3 additions & 2 deletions orchagent/dash/dashorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,9 @@ bool DashOrch::removeEniObject(const string& eni)
SWSS_LOG_ENTER();

EniEntry entry = eni_entries_[eni];

removeEniFromFC(entry.eni_id, eni);

sai_status_t status = sai_dash_eni_api->remove_eni(entry.eni_id);
if (status != SAI_STATUS_SUCCESS)
{
Expand All @@ -546,8 +549,6 @@ bool DashOrch::removeEniObject(const string& eni)
}
}

removeEniFromFC(entry.eni_id, eni);

gCrmOrch->decCrmResUsedCounter(CrmResourceType::CRM_DASH_ENI);

SWSS_LOG_NOTICE("Removed ENI object for %s", eni.c_str());
Expand Down
364 changes: 0 additions & 364 deletions tests/test_dash_vnet.py

This file was deleted.

0 comments on commit 1b57392

Please sign in to comment.