feat: Adds IMSI QoS endpoint replacing DNN QoS from PolicyControl#73
feat: Adds IMSI QoS endpoint replacing DNN QoS from PolicyControl#73gab-arrobo merged 10 commits intoomec-project:mainfrom
Conversation
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
There was a problem hiding this comment.
Pull Request Overview
This PR adds an IMSI-specific QoS endpoint replacing DNN-level QoS in the NF configuration API.
- Introduces new
/nfconfig/qos/{dnn}/{imsi}path andImsiQosschema in the OpenAPI spec. - Removes the old
DnnQosmodel and related references inPolicyControl. - Implements client-side Go support for the new endpoint in
api_default.go.
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| nfConfigApi/webconsole-api.yaml | Added new QoS path with ImsiQos schema, removed DnnQos usage. |
| nfConfigApi/model_*.go | Added compile-time MappedNullable checks across models and dropped DnnQos refs. |
| nfConfigApi/model_imsi_qos.go | Introduced generated ImsiQos model with JSON marshalling and validation. |
| nfConfigApi/api_default.go | Implemented NfconfigQosDnnImsiGet client methods using the new endpoint. |
Comments suppressed due to low confidence (2)
nfConfigApi/webconsole-api.yaml:116
- Add a
patternfield to theimsiparameter schema to enforce the expected format, e.g.^imsi-\\d{15,16}$.
description: IMSI in format “imsi-” followed by 15 or 16 digits
nfConfigApi/api_default.go:422
- Add unit tests for the new
NfconfigQosDnnImsiGetclient method to cover success, not-found, and error scenarios.
type ApiNfconfigQosDnnImsiGetRequest struct {
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
gab-arrobo
left a comment
There was a problem hiding this comment.
Overall, it looks good. I added some minor comments.
BTW, if you need to create a release (i.e., tag), you need to modify the VERSION file
Hello @gab-arrobo, Alternatively (for the consts specifically) I could update the enums in the What do you think about that? |
I agree, we should not modify the generated code. |
No need to manually do that. There is an option to append the struct name as a prefix to the enums. Let me get back to you when I am in front of my computer. |
Thanks for the hint @gab-arrobo |
I think this should do the job: |
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
f502f09 to
392ce7f
Compare
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
gab-arrobo
left a comment
There was a problem hiding this comment.
Please address issue with GHA
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
|
@Gmerold, |
Signed-off-by: Bartlomiej Gmerek <bartlomiej.gmerek@canonical.com>
Hi @gab-arrobo, |
This PR implements latest update to the new NF configuration system.
To acknowledge the fact that subscribers using the same DNN can be served with different QoS, new endpoint is introduced. The
/nfconfig/qos/{dnn}/{imsi}endpoint allows getting the QoS configuration for a given IMSI.