omec-project / webconsole

3 stars 12 forks source link

Get subscriber details does not include the plmnID #158

Open patriciareinoso opened 7 months ago

patriciareinoso commented 7 months ago

Describe the bug

When we get all the subscribers, each element in the list includes plmnID and ueId. However, when we get the details of the subscribers, the plmnID is empty.

ubuntu@test-traefik:~$  curl ${WEBUI_IP}:5000/api/subscriber
[{"plmnID":"20893","ueId":"imsi-208930100007487"}]

ubuntu@test-traefik:~$ curl  ${WEBUI_IP}:5000/api/subscriber/imsi-208930100007487
{"plmnID":"","ueId":"imsi-208930100007487","AuthenticationSubscription": ...

To Reproduce

CREATE SUBSCRIBER

curl -v ${WEBUI_IP}:5000/api/subscriber/imsi-208930100007487 \ --header 'Content-Type: text/plain' \ --data '{ "UeId":"208930100007487", "opc":"981d464c7c52eb6e5036234984ad0bcf", "key":"5122250214c33e723a5dd523fc145fc0", "sequenceNumber":"16f3b3f70fc2" }'

CREATE DEVICE GROUP

curl -v ${WEBUI_IP}:5000/config/v1/device-group/cows \ --header 'Content-Type: application/json' \ --data '{ "imsis": [ "208930100007487" ], "site-info": "demo", "ip-domain-name": "pool1", "ip-domain-expanded": { "dnn": "internet", "ue-ip-pool": "172.250.1.0/16", "dns-primary": "8.8.8.8", "mtu": 1460, "ue-dnn-qos": { "dnn-mbr-uplink": 20000000, "dnn-mbr-downlink": 200000000, "traffic-class": { "name": "platinum", "arp": 6, "pdb": 300, "pelr": 6, "qci": 8 } } } }'

CREATE NETWORK SLICE

curl -v ${WEBUI_IP}:5000/config/v1/network-slice/default \ --header 'Content-Type: application/json' \ --data '{ "slice-id": { "sst": "1", "sd": "010203" }, "site-device-group": [ "cows" ], "site-info": { "site-name": "demo", "plmn": { "mcc": "208", "mnc": "93" }, "gNodeBs": [ { "name": "demo-gnb1", "tac": 1 } ], "upf": { "upf-name": "upf-external.core.svc.cluster.local", "upf-port": "8805" } } }'

LIST ALL SUBSCRIBERS

Expected behavior

The same plmnID gotten when listing all the subscribers should be found in the plmnID field of the subscriber's details.

github-actions[bot] commented 3 months ago

This issue has been stale for 120 days and will be closed in 15 days. Comment to keep it open.