Huang Cheng | ba7629d | 2020-03-03 09:01:58 +0000 | [diff] [blame^] | 1 | Python Dependence: python 3.6.x |
| 2 | |
| 3 | |
| 4 | 1. To specify the supported NRM function in DefinedNRMFunction.json |
| 5 | |
| 6 | |
| 7 | 2. To specify the HTTP server configuration info in ConfigInfo.json |
| 8 | |
| 9 | |
| 10 | 3. To specify the User info in UserInfo.json |
| 11 | |
| 12 | |
| 13 | 4. To specify the pre-set-MOI info in preSetMOI.json |
| 14 | |
| 15 | |
| 16 | 5. To run the HTTP EMS simulator: python ProvMnSProvider.py |
| 17 | |
| 18 | Build the image by using the command: docker build . -t prov-mns-provider |
| 19 | Create the container and start the service by using the command: docker-compose up -d |
| 20 | |
| 21 | The default port number of ProvMnSProvider is : 8000 |
| 22 | |
| 23 | The default username&password of ProvMnSProvider is : root&root |
| 24 | |
| 25 | ProvMnSProvider provdies four RESTful APIs: |
| 26 | |
| 27 | 1. Sample PUT request to Create MOI |
| 28 | PUT /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805 |
| 29 | { |
| 30 | "data": { |
| 31 | "attributes": { |
| 32 | "pLMNId": { |
| 33 | "mnc": "01", |
| 34 | "mcc": "001" |
| 35 | }, |
| 36 | "gNBId": "1", |
| 37 | "gNBIdLength": "5", |
| 38 | "gNBCUName": "gnb-01" |
| 39 | }, |
| 40 | "href": "/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805", |
| 41 | "class": "GNBCUCPFunction", |
| 42 | "id": "35c369d0-2681-4225-9755-daf98fd20805" |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | 2. Sample GET request to get MOI attributes |
| 47 | GET /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction&fields=gNBId&fields=gNBIdLength |
| 48 | |
| 49 | 3. Sample PATCH request to modify MOI attributes |
| 50 | PATCH /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction |
| 51 | { |
| 52 | "data": { |
| 53 | "pLMNId": "xxx", |
| 54 | "gNBId": "1234", |
| 55 | "gNBIdLength": "4" |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | 4. Sample DELETE request to delete MOI |
| 60 | DELETE /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction |