[VOL-4814] Adding Rest interfaces for flow and subscribers
Change-Id: I7da50b14e7600884a8b38c37b63704241942d8af
diff --git a/internal/pkg/application/application.go b/internal/pkg/application/application.go
index e7d2d04..04f4a6a 100644
--- a/internal/pkg/application/application.go
+++ b/internal/pkg/application/application.go
@@ -1283,12 +1283,17 @@
for _, vpv := range vpvs.([]*VoltPortVnet) {
vpv.VpvLock.Lock()
-
- //Do not trigger indication for the vpv which is already removed from vpv list as
- // part of service delete (during the lock wait duration)
- // In that case, the services associated wil be zero
- if vpv.servicesCount.Load() != 0 {
- vpv.PortUpInd(cntx, d, port)
+ //If no service is activated drop the portUpInd
+ if vpv.IsServiceActivated(cntx) {
+ //Do not trigger indication for the vpv which is already removed from vpv list as
+ // part of service delete (during the lock wait duration)
+ // In that case, the services associated wil be zero
+ if vpv.servicesCount.Load() != 0 {
+ vpv.PortUpInd(cntx, d, port)
+ }
+ } else {
+ // Service not activated, still attach device to service
+ vpv.setDevice(d.Name)
}
vpv.VpvLock.Unlock()
}