diff --git a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go index b65cef6cc4530fcb058fcd0c45d6d2b2333ae722..50f27bb6299b6c783770e5ad02ae3eb210e1a503 100644 --- a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +++ b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go @@ -1848,8 +1848,35 @@ func checkSerAvailNotification(sInfo *ServiceInfo, mep string, changeType CapifE } } } + versions := []string{sInfo.Version} + aefProfile := &AefProfile{ + AefId: sInfo.TransportInfo.Id, + Versions: versions, + InterfaceDescriptions: sInfo.TransportInfo.Endpoint, + VendorSpecificUrnetsimeccapifexttransportInfo: &MecTransportInfoCapifExt{ + Name: sInfo.TransportInfo.Name, + Type_: sInfo.TransportInfo.Type_, + Protocol: sInfo.TransportInfo.Protocol, + Version: sInfo.TransportInfo.Version, + Security: sInfo.TransportInfo.Security, + }, + } + dsInfo := &ServiceApiDescription{ + ApiName: sInfo.SerName, + ApiId: sInfo.SerInstanceId, + AefProfiles: []AefProfile{*aefProfile}, + VendorSpecificUrnetsimeccapifextserviceInfo: &MecServiceInfoCapifExt{ + Serializer: sInfo.Serializer, + State: sInfo.State, + ScopeOfLocality: sInfo.ScopeOfLocality, + ConsumedLocalOnly: sInfo.ConsumedLocalOnly, + IsLocal: sInfo.IsLocal, + Category: sInfo.SerCategory, + }, + } event_detail := &CapifEventDetail{} + event_detail.ServiceApiDescriptions = append(event_detail.ServiceApiDescriptions, *dsInfo) event_detail.ApiIds = append(event_detail.ApiIds, sInfo.SerInstanceId) // Create a new EventNotification instance notif := &EventNotification{