Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
849ee9df
Unverified
Commit
849ee9df
authored
Nov 26, 2021
by
kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S-NSSAI check fix
parent
20ee94ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+7
-3
No files found.
src/amf-app/amf_n11.cpp
View file @
849ee9df
...
@@ -61,6 +61,7 @@ using namespace oai::smf::model;
...
@@ -61,6 +61,7 @@ using namespace oai::smf::model;
using
namespace
oai
::
smf
::
api
;
using
namespace
oai
::
smf
::
api
;
using
namespace
web
;
using
namespace
web
;
using
namespace
web
::
http
;
using
namespace
web
::
http
;
// Common features like URIs.
using
namespace
web
::
http
::
client
;
using
namespace
web
::
http
::
client
;
using
namespace
config
;
using
namespace
config
;
using
namespace
amf_application
;
using
namespace
amf_application
;
...
@@ -1109,11 +1110,14 @@ bool amf_n11::discover_smf(
...
@@ -1109,11 +1110,14 @@ bool amf_n11::discover_smf(
for
(
auto
&
s
:
instance_json
[
"sNssais"
].
items
())
{
for
(
auto
&
s
:
instance_json
[
"sNssais"
].
items
())
{
nlohmann
::
json
Snssai
=
s
.
value
();
nlohmann
::
json
Snssai
=
s
.
value
();
if
(
Snssai
[
"sst"
]
==
snssai
.
sST
)
{
if
(
Snssai
[
"sst"
]
==
snssai
.
sST
)
{
// Match SD (optional) only if it is provided
if
(
!
Snssai
[
"sd"
].
empty
()
&
Snssai
[
"sd"
]
!=
snssai
.
sD
)
{
if
(
!
Snssai
[
"sd"
].
empty
()
&
Snssai
[
"sd"
]
!=
snssai
.
sD
)
{
Logger
::
amf_n11
().
debug
(
"SD is not matched"
);
Logger
::
amf_n11
().
debug
(
"SD is not matched"
);
result
=
false
;
result
=
false
;
}
}
Logger
::
amf_n11
().
debug
(
"Snssai is matched for SMF profile"
);
Logger
::
amf_n11
().
debug
(
"Snssai [SST- %s, SD -%s] is matched for SMF profile"
,
Snssai
[
"sst"
].
dump
().
c_str
(),
Snssai
[
"sd"
].
dump
().
c_str
());
result
=
true
;
result
=
true
;
break
;
break
;
}
else
{
}
else
{
...
@@ -1122,7 +1126,6 @@ bool amf_n11::discover_smf(
...
@@ -1122,7 +1126,6 @@ bool amf_n11::discover_smf(
result
=
false
;
result
=
false
;
}
}
}
}
if
(
!
result
)
return
result
;
}
}
// TODO: check DNN
// TODO: check DNN
// TODO: PLMN (need to add plmnList into NRF profile, SMF profile)
// TODO: PLMN (need to add plmnList into NRF profile, SMF profile)
...
@@ -1143,8 +1146,9 @@ bool amf_n11::discover_smf(
...
@@ -1143,8 +1146,9 @@ bool amf_n11::discover_smf(
}
}
}
}
}
}
break
;
}
}
// Break after first matching SMF instance for requested S-NSSAI
if
(
result
)
break
;
}
}
}
}
Logger
::
amf_n11
().
debug
(
Logger
::
amf_n11
().
debug
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment