Changes of Revision 521

open5gs_2.6.6.32.adcdc.202311232026.dsc -> open5gs_2.6.6.33.a19d.202311242026.dsc Changed
x
 
1
@@ -2,7 +2,7 @@
2
 Source: open5gs
3
 Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-sepp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg
4
 Architecture: any
5
-Version: 2.6.6.32.adcdc.202311232026
6
+Version: 2.6.6.33.a19d.202311242026
7
 Maintainer: Harald Welte <laforge@gnumonks.org>
8
 Uploaders: Sukchan Lee <acetcom@gmail.com>
9
 Homepage: https://open5gs.org
10
@@ -32,8 +32,8 @@
11
  open5gs-udr deb net optional arch=any
12
  open5gs-upf deb net optional arch=any
13
 Checksums-Sha1:
14
- bb2fa6a7a2a6cd602db91b89cb09c39c6db4b3b4 14458056 open5gs_2.6.6.32.adcdc.202311232026.tar.xz
15
+ e225d0a0fbffa64a57507a18f419efcd80428c47 14458676 open5gs_2.6.6.33.a19d.202311242026.tar.xz
16
 Checksums-Sha256:
17
- db8e8837198ea1b593583664235131863138e69c1eb08b3fad7c88fb468f1f1d 14458056 open5gs_2.6.6.32.adcdc.202311232026.tar.xz
18
+ 67d59c45396b08208d92dca0b1d127bb6b1f9836cebeba1b5d4924ecd6a0bb36 14458676 open5gs_2.6.6.33.a19d.202311242026.tar.xz
19
 Files:
20
- 20b4d3261a20317b7a50d142815119df 14458056 open5gs_2.6.6.32.adcdc.202311232026.tar.xz
21
+ e4644240d9ac9ada906a4bdd78f04297 14458676 open5gs_2.6.6.33.a19d.202311242026.tar.xz
22
open5gs_2.6.6.32.adcdc.202311232026.tar.xz/.tarball-version -> open5gs_2.6.6.33.a19d.202311242026.tar.xz/.tarball-version Changed
4
 
1
@@ -1 +1 @@
2
-2.6.6.32-adcdc.202311232026
3
+2.6.6.33-a19d.202311242026
4
open5gs_2.6.6.32.adcdc.202311232026.tar.xz/debian/changelog -> open5gs_2.6.6.33.a19d.202311242026.tar.xz/debian/changelog Changed
12
 
1
@@ -1,8 +1,8 @@
2
-open5gs (2.6.6.32.adcdc.202311232026) unstable; urgency=medium
3
+open5gs (2.6.6.33.a19d.202311242026) unstable; urgency=medium
4
 
5
   * Automatically generated changelog entry for building the Osmocom nightly feed
6
 
7
- -- Osmocom OBS scripts <info@osmocom.org>  Thu, 23 Nov 2023 20:27:56 +0000
8
+ -- Osmocom OBS scripts <info@osmocom.org>  Fri, 24 Nov 2023 20:27:38 +0000
9
 
10
 open5gs (2.6.6) unstable; urgency=medium
11
 
12
open5gs_2.6.6.32.adcdc.202311232026.tar.xz/lib/sbi/path.c -> open5gs_2.6.6.33.a19d.202311242026.tar.xz/lib/sbi/path.c Changed
80
 
1
@@ -92,6 +92,7 @@
2
     ogs_sbi_xact_t *xact = NULL;
3
     ogs_sbi_object_t *sbi_object = NULL;
4
     ogs_sbi_service_type_e service_type = OGS_SBI_SERVICE_TYPE_NULL;
5
+    ogs_sbi_discovery_option_t *discovery_option = NULL;
6
     OpenAPI_nf_type_e target_nf_type = OpenAPI_nf_type_NULL;
7
     OpenAPI_nf_type_e requester_nf_type = OpenAPI_nf_type_NULL;
8
 
9
@@ -118,6 +119,8 @@
10
     requester_nf_type = xact->requester_nf_type;
11
     ogs_assert(requester_nf_type);
12
 
13
+    discovery_option = xact->discovery_option;
14
+
15
     if (status != OGS_OK) {
16
         ogs_log_message(
17
                 status == OGS_DONE ? OGS_LOG_DEBUG : OGS_LOG_WARN, 0,
18
@@ -148,6 +151,61 @@
19
             ogs_sbi_nf_instance_set_id(nf_instance, producer_id);
20
             ogs_sbi_nf_instance_set_type(nf_instance, target_nf_type);
21
 
22
+            switch (target_nf_type) {
23
+            case OpenAPI_nf_type_SMF:
24
+                if (discovery_option &&
25
+                    discovery_option->num_of_snssais && discovery_option->dnn &&
26
+                    discovery_option->tai_presence == true) {
27
+    /*
28
+     * If we assume that SMF is executed first and then AMF is executed,
29
+     * AMF will not have SMF information, so it needs to discover SMF
30
+     * through NFDiscovery instead of the subscription notification.
31
+     *
32
+     * Let's assume that in smfInfo, TAC is set to 1 and 2, and two SMFs are
33
+     * executed. In this case, TAI will be added to the discovery option and
34
+     * will be performed during the NFDiscovery process.
35
+     *
36
+     * If the first SMF is discovered with TAC 1 in conjunction with SCP,
37
+     * AMF will remember this SMF through Producer-Id. However, if the second
38
+     * SMF with TAC 2 is discovered, the previously discovered SMF with TAC 1
39
+     * will be selected.
40
+     *
41
+     * Therefore, to avoid such a situation, we reflect the contents of
42
+     * the discovery option in NFProfile. For SMF, we record the s_nssai, dnn,
43
+     * and tai information in the ogs_sbi_smf_info_t structure, which is created
44
+     * as ogs_sbi_nf_info_t. Then, when we try to find the second SMF
45
+     * with TAC 2, we compare these values in the amf_sbi_select_nf() function,
46
+     * allowing us to discover a new SMF.
47
+     */
48
+                    ogs_sbi_nf_info_t *nf_info = NULL;
49
+                    ogs_sbi_smf_info_t *smf_info = NULL;
50
+
51
+                    nf_info = ogs_sbi_nf_info_add(
52
+                            &nf_instance->nf_info_list, OpenAPI_nf_type_SMF);
53
+                    ogs_assert(nf_info);
54
+
55
+                    smf_info = &nf_info->smf;
56
+                    ogs_assert(smf_info);
57
+
58
+                    smf_info->slice0.dnn0 =
59
+                        ogs_strdup(discovery_option->dnn);
60
+                    ogs_assert(smf_info->slice0.dnn0);
61
+                    smf_info->slice0.num_of_dnn++;
62
+
63
+                    memcpy(&smf_info->slice0.s_nssai,
64
+                            &discovery_option->snssais0,
65
+                            sizeof(ogs_s_nssai_t));
66
+                    smf_info->num_of_slice++;
67
+
68
+                    memcpy(&smf_info->nr_tai0,
69
+                            &discovery_option->tai, sizeof(ogs_5gs_tai_t));
70
+                    smf_info->num_of_nr_tai++;
71
+                }
72
+                break;
73
+            default:
74
+                break;
75
+            }
76
+
77
             ogs_sbi_nf_fsm_init(nf_instance);
78
 
79
             ogs_info("%s (SCP-discover) NF registered %s:%d",
80