Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ETSI MEC Sandbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MEC - Multi-access Edge Computing
ETSI MEC Sandbox
Commits
1aafa095
Commit
1aafa095
authored
6 months ago
by
Ikram Haq
Browse files
Options
Downloads
Patches
Plain Diff
Clean the code
parent
29cdfe1c
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Merge CAPIF into MEC Federation branch for ETSI SNS4SNS demo
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go
+1
-29
1 addition, 29 deletions
...pps/meep-app-enablement/server/capif-mgmt/service-mgmt.go
with
1 addition
and
29 deletions
go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go
+
1
−
29
View file @
1aafa095
...
...
@@ -521,7 +521,6 @@ func appServicesByIdPUT(w http.ResponseWriter, r *http.Request) {
}
// Current implementation only supports state parameter change;
// Make sure none of the other service information fields have changed
state
:=
*
_sInfo
.
State
*
_sInfo
.
State
=
*
sInfoPrev
.
State
// isLocal is only set in responses, subscriptions and notifications;
...
...
@@ -686,11 +685,6 @@ func appServicesByIdPATCH(w http.ResponseWriter, r *http.Request) {
}
// Current implementation only supports state parameter change;
// Make sure none of the other service information fields have changed
// state := *_sInfo.State
// *_sInfo.State = *sInfoPrev.State
// isLocal is only set in responses, subscriptions and notifications;
// Ignore this field while comparing the previous & new service info structs
_sInfo
.
IsLocal
=
sInfoPrev
.
IsLocal
// Compare service information as JSON strings
...
...
@@ -740,23 +734,8 @@ func appServicesByIdPATCH(w http.ResponseWriter, r *http.Request) {
// Map ServiceInfoList to ServiceApiDescription list
serviceApiDescriptions
:=
make
([]
ServiceApiDescription
,
0
)
// Assuming _sInfo is an instance of ServiceInfo
service
:=
_sInfo
// Create an AefProfile from TransportInfo inside ServiceInfo
// aefProfile_ := AefProfile{
// AefId: service.TransportInfo.Id,
// Versions: []string{service.Version}, // Assuming Version is a string
// InterfaceDescriptions: service.TransportInfo.Endpoint,
// VendorSpecificUrnetsimeccapifexttransportInfo: &MecTransportInfoCapifExt{
// Name: service.TransportInfo.Name,
// Type_: service.TransportInfo.Type_,
// Protocol: service.TransportInfo.Protocol,
// Version: service.TransportInfo.Version,
// Security: service.TransportInfo.Security,
// },
// }
// Create the ServiceApiDescription and populate it with data from ServiceInfo
apiDesc
:=
ServiceApiDescription
{
ApiName
:
service
.
SerName
,
// Map SerName to ApiName
...
...
@@ -1107,14 +1086,7 @@ func applicationsSubscriptionsPUT(w http.ResponseWriter, r *http.Request) {
if
updatedSub
.
NotificationDestination
!=
""
{
sub
.
Cfg
.
NotifyUrl
=
updatedSub
.
NotificationDestination
}
// if updatedSub.RequestTestNotification {
// sub.Cfg.RequestTestNotif = true
// }
// if updatedSub.RequestWebsocketUri {
// sub.Cfg.RequestWebsocketUri = true
// } else {
// sub.Cfg.RequestWebsocketUri = false
// }
// Update event filters if provided
if
updatedSub
.
EventFilters
!=
nil
{
sub
.
Cfg
.
EventFilters
=
convertEventFiltersToStrings
(
updatedSub
.
EventFilters
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment