[VOL-2890] Using olt-device-id in the path of a tech-profile
Change-Id: I4b572790e8b82ef903e557dee0ddf1a21859f188
diff --git a/internal/pkg/resourcemanager/resourcemanager.go b/internal/pkg/resourcemanager/resourcemanager.go
index 855ebce..f61c1f8 100755
--- a/internal/pkg/resourcemanager/resourcemanager.go
+++ b/internal/pkg/resourcemanager/resourcemanager.go
@@ -145,6 +145,7 @@
logger.Fatalw("Failed to init KV client\n", log.Fields{"err": err})
return nil
}
+
kvbackend := &db.Backend{
Client: kvClient,
StoreType: backend,
@@ -812,6 +813,7 @@
RsrcMgr.AllocIDMgmtLock[intfID].Lock()
AllocIDs := RsrcMgr.ResourceMgrs[intfID].GetCurrentAllocIDForOnu(ctx, IntfOnuIDUniID)
+
RsrcMgr.ResourceMgrs[intfID].FreeResourceID(ctx, intfID,
ponrmgr.ALLOC_ID,
AllocIDs)