Commit ab324488 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add MEC 016 support

parent f5137dca
Loading
Loading
Loading
Loading
+38 −25
Original line number Diff line number Diff line
@@ -22,9 +22,6 @@ By default, there is one onboarded MEC application named onboarded-demo4, descri
```yaml
{
    "appList":
        [
            {
                "appInfoList":
        [
            {
                "appDId": "onboarded-demo4",
@@ -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,
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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.
+3 −1
Original line number Diff line number Diff line
@@ -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
+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"
                    }
            }
        ]
}
+6 −6
Original line number Diff line number Diff line
@@ -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