Loading examples/demo4-ue/README.md +38 −25 Original line number Diff line number Diff line Loading @@ -22,9 +22,6 @@ By default, there is one onboarded MEC application named onboarded-demo4, descri ```yaml { "appList": [ { "appInfoList": [ { "appDId": "onboarded-demo4", Loading @@ -36,13 +33,33 @@ By default, there is one onboarded MEC application named onboarded-demo4, descri "appLocation": [ { "area": null, "civicAddressElement": null, "countryCode": "33" "area": { "coordinates": [ [ [7.420433,43.729942],[7.420659,43.73036],[7.420621,43.731045],[7.420922,43.73129] ], [ [7.43166,43.736156],[7.431723,43.736115],[7.431162,43.735607],[7.430685,43.73518] ] ] }, "civicAddressElement": [ { "caType": 1, "caValue": "A1" }, { "caType": 2, "caValue": "A2" } ], "countryCode": "492" } ], "appCharcs": [ { "memory": 1024, "storage": 1024, Loading @@ -50,17 +67,13 @@ By default, there is one onboarded MEC application named onboarded-demo4, descri "bandwidth": 1024, "serviceCont": 0 } ], "cmd": "/onboardedapp/onboarded-demo/onboarded-demo4", "args":null } ], "vendorSpecificExt": { "vendorSpecificExt": { "vendorId": "ETSI" } } ] } ``` ### demo4-ue Loading examples/demo4-ue/src/demo-server/backend/api/swagger.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ paths: content: application/json: schema: $ref: '#/components/schemas/AppLocationAvailability' $ref: '#/components/schemas/ApplicationLocationAvailability' "400": description: Bad request. It is used to indicate that incorrect parameters were passed to the request. Loading examples/demo4-ue/src/demo-server/backend/build.sh +3 −1 Original line number Diff line number Diff line Loading @@ -23,3 +23,5 @@ go build -o $BINDIR/demo-server . cp -Rp ./api/ $BINDIR mv $BINDIR/api/swagger.yaml $BINDIR/api/MEC\ Demo\ 4\ API cp $BINDIR/api/* $BINDIR/user-api cp ../demo4-ue-config.yaml $BINDIR examples/demo4-ue/src/onboarded-demo/onboarded-demo-test1.jsondeleted 100644 → 0 +0 −61 Original line number Diff line number Diff line { "appList": [ { "appInfoList": [ { "appDId": "appDId1", "appName": "appName1", "appProvider": "appProvider1", "appSoftVersion": "appSoftVersion1", "appDVersion": "appDVersion1", "appDescription": "appDescription1", "appLocation": [ { "area": { "coordinates": [ [ [7.43166,43.736156],[7.431723,43.736115],[7.431162,43.735607],[7.430685,43.73518] ] ] }, "countryCode": "countryCode1" }, { "civicAddressElement": [ { "caType": 2, "caValue": "Value2" }, { "caType": 20, "caValue": "Value20" } ] } ], "appCharcs": [ { "memory": 2048, "storage": 2048, "latency": 2048, "bandwidth": 2048, "serviceCont": 1 } ], "cmd": "uptime", "args":null } ], "vendorSpecificExt": { "vendorId": "vendorId1" } } ] } examples/demo4-ue/src/onboarded-demo/server/onboarded-demo-service.go +6 −6 Original line number Diff line number Diff line Loading @@ -140,12 +140,12 @@ func Init() (err error) { // Create DAI client cfgDai := tm.DaiCfg{ Name: amName, Namespace: amNamespace, User: amDBUser, Pwd: amDBPwd, Host: amDBHost, Port: amDBPort, // Name: amName, // Namespace: amNamespace, // User: amDBUser, // Pwd: amDBPwd, // Host: amDBHost, // Port: amDBPort, NotifyAppContextDeletion: nil, } daiMgr, err := tm.NewDaiMgr(cfgDai) Loading Loading
examples/demo4-ue/README.md +38 −25 Original line number Diff line number Diff line Loading @@ -22,9 +22,6 @@ By default, there is one onboarded MEC application named onboarded-demo4, descri ```yaml { "appList": [ { "appInfoList": [ { "appDId": "onboarded-demo4", Loading @@ -36,13 +33,33 @@ By default, there is one onboarded MEC application named onboarded-demo4, descri "appLocation": [ { "area": null, "civicAddressElement": null, "countryCode": "33" "area": { "coordinates": [ [ [7.420433,43.729942],[7.420659,43.73036],[7.420621,43.731045],[7.420922,43.73129] ], [ [7.43166,43.736156],[7.431723,43.736115],[7.431162,43.735607],[7.430685,43.73518] ] ] }, "civicAddressElement": [ { "caType": 1, "caValue": "A1" }, { "caType": 2, "caValue": "A2" } ], "countryCode": "492" } ], "appCharcs": [ { "memory": 1024, "storage": 1024, Loading @@ -50,17 +67,13 @@ By default, there is one onboarded MEC application named onboarded-demo4, descri "bandwidth": 1024, "serviceCont": 0 } ], "cmd": "/onboardedapp/onboarded-demo/onboarded-demo4", "args":null } ], "vendorSpecificExt": { "vendorSpecificExt": { "vendorId": "ETSI" } } ] } ``` ### demo4-ue Loading
examples/demo4-ue/src/demo-server/backend/api/swagger.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ paths: content: application/json: schema: $ref: '#/components/schemas/AppLocationAvailability' $ref: '#/components/schemas/ApplicationLocationAvailability' "400": description: Bad request. It is used to indicate that incorrect parameters were passed to the request. Loading
examples/demo4-ue/src/demo-server/backend/build.sh +3 −1 Original line number Diff line number Diff line Loading @@ -23,3 +23,5 @@ go build -o $BINDIR/demo-server . cp -Rp ./api/ $BINDIR mv $BINDIR/api/swagger.yaml $BINDIR/api/MEC\ Demo\ 4\ API cp $BINDIR/api/* $BINDIR/user-api cp ../demo4-ue-config.yaml $BINDIR
examples/demo4-ue/src/onboarded-demo/onboarded-demo-test1.jsondeleted 100644 → 0 +0 −61 Original line number Diff line number Diff line { "appList": [ { "appInfoList": [ { "appDId": "appDId1", "appName": "appName1", "appProvider": "appProvider1", "appSoftVersion": "appSoftVersion1", "appDVersion": "appDVersion1", "appDescription": "appDescription1", "appLocation": [ { "area": { "coordinates": [ [ [7.43166,43.736156],[7.431723,43.736115],[7.431162,43.735607],[7.430685,43.73518] ] ] }, "countryCode": "countryCode1" }, { "civicAddressElement": [ { "caType": 2, "caValue": "Value2" }, { "caType": 20, "caValue": "Value20" } ] } ], "appCharcs": [ { "memory": 2048, "storage": 2048, "latency": 2048, "bandwidth": 2048, "serviceCont": 1 } ], "cmd": "uptime", "args":null } ], "vendorSpecificExt": { "vendorId": "vendorId1" } } ] }
examples/demo4-ue/src/onboarded-demo/server/onboarded-demo-service.go +6 −6 Original line number Diff line number Diff line Loading @@ -140,12 +140,12 @@ func Init() (err error) { // Create DAI client cfgDai := tm.DaiCfg{ Name: amName, Namespace: amNamespace, User: amDBUser, Pwd: amDBPwd, Host: amDBHost, Port: amDBPort, // Name: amName, // Namespace: amNamespace, // User: amDBUser, // Pwd: amDBPwd, // Host: amDBHost, // Port: amDBPort, NotifyAppContextDeletion: nil, } daiMgr, err := tm.NewDaiMgr(cfgDai) Loading