mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +00:00
[AMF] Add amfInfoList to NFProfile
The actual configured GUAMIs and TAIs are used to form NF profile.
Comparing to SMF the "info" section is not introduced into amf.yaml!
Each amf_id (region, set) produces a separate Info in the InfoList.
Guami list consists of all GUAMIs of particular Info.
taiList consists of all TAIs for all PLMNs of particular Info.
Examle:
amf.yaml:
guami:
- plmn_id:
mcc: 999
mnc: 70
amf_id:
region: 2
set: 2
pointer: 4
- plmn_id:
mcc: 001
mnc: 01
amf_id:
region: 2
set: 1
- plmn_id:
mcc: 001
mnc: 02
amf_id:
region: 2
set: 2
tai:
- plmn_id:
mcc: 001
mnc: 01
tac: [1, 2, 3]
tai:
- plmn_id:
mcc: 002
mnc: 02
tac: 4
- plmn_id:
mcc: 001
mnc: 02
tac: 10
tai:
- plmn_id:
mcc: 004
mnc: 04
tac: [6, 7]
- plmn_id:
mcc: 005
mnc: 05
tac: 8
- plmn_id:
mcc: 999
mnc: 70
tac: [9, 10]
"amfInfoList": {
"1": {
"amfSetId": "002",
"amfRegionId": "02",
"guamiList": [{
"plmnId": {
"mcc": "999",
"mnc": "70"
},
"amfId": "020084"
}, {
"plmnId": {
"mcc": "001",
"mnc": "02"
},
"amfId": "020080"
}],
"taiList": [{
"plmnId": {
"mcc": "001",
"mnc": "02"
},
"tac": "00000a"
}, {
"plmnId": {
"mcc": "999",
"mnc": "70"
},
"tac": "000009"
}, {
"plmnId": {
"mcc": "999",
"mnc": "70"
},
"tac": "00000a"
}]
},
"2": {
"amfSetId": "001",
"amfRegionId": "02",
"guamiList": [{
"plmnId": {
"mcc": "001",
"mnc": "01"
},
"amfId": "020040"
}],
"taiList": [{
"plmnId": {
"mcc": "001",
"mnc": "01"
},
"tac": "000001"
}, {
"plmnId": {
"mcc": "001",
"mnc": "01"
},
"tac": "000002"
}, {
"plmnId": {
"mcc": "001",
"mnc": "01"
},
"tac": "000003"
}]
}
}
This commit is contained in:
parent
ce7d631064
commit
d3d4e5ce60
5 changed files with 367 additions and 26 deletions
|
|
@ -255,12 +255,37 @@ typedef struct ogs_sbi_smf_info_s {
|
|||
} nr_tai_range[OGS_MAX_NUM_OF_TAI];
|
||||
} ogs_sbi_smf_info_t;
|
||||
|
||||
typedef struct ogs_sbi_amf_info_s {
|
||||
int amf_set_id;
|
||||
int amf_region_id;
|
||||
|
||||
int num_of_guami;
|
||||
ogs_guami_t guami[MAX_NUM_OF_SERVED_GUAMI];
|
||||
|
||||
int num_of_nr_tai;
|
||||
ogs_5gs_tai_t nr_tai[OGS_MAX_NUM_OF_TAI];
|
||||
|
||||
int num_of_nr_tai_range;
|
||||
struct {
|
||||
ogs_plmn_id_t plmn_id;
|
||||
/*
|
||||
* TS29.510 6.1.6.2.28 Type: TacRange
|
||||
*
|
||||
* Either the start and end attributes, or
|
||||
* the pattern attribute, shall be present.
|
||||
*/
|
||||
int num_of_tac_range;
|
||||
ogs_uint24_t start[OGS_MAX_NUM_OF_TAI], end[OGS_MAX_NUM_OF_TAI];
|
||||
} nr_tai_range[OGS_MAX_NUM_OF_TAI];
|
||||
} ogs_sbi_amf_info_t;
|
||||
|
||||
typedef struct ogs_sbi_nf_info_s {
|
||||
ogs_lnode_t lnode;
|
||||
|
||||
OpenAPI_nf_type_e nf_type;
|
||||
union {
|
||||
ogs_sbi_smf_info_t smf;
|
||||
ogs_sbi_amf_info_t amf;
|
||||
};
|
||||
} ogs_sbi_nf_info_t;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue