Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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-SMF
Commits
7ac31d52
Commit
7ac31d52
authored
Nov 15, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for PAA
parent
c7ac1f5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
etc/smf.conf
etc/smf.conf
+0
-15
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+3
-1
No files found.
etc/smf.conf
View file @
7ac31d52
...
...
@@ -50,21 +50,6 @@ SMF =
# Pool of UE assigned IP addresses
# Do not make IP pools overlap
# first IPv4 address X.Y.Z.1 is reserved for GTP network device on UPF
IP_ADDRESS_POOL
:
{
IPV4_LIST
= (
{
RANGE
=
"12.1.1.2 - 12.1.1.128"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"12.1.1.129 - 12.1.1.224"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"10.10.10.2 - 10.10.10.253"
;}
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
);
IPV6_LIST
= (
{
PREFIX
=
"2001:1:2::/64"
;},
# STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
{
PREFIX
=
"3001:1:2::/64"
;},
# STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
{
PREFIX
=
"4001:1:2::/64"
;}
# STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
);
};
DNN_LIST
= (
# IPV4_POOL, IPV6_POOL are index in IPV4_LIST, IPV6_LIST, PDU_SESSION_TYPE choice in {IPv4, IPv6, IPv4v6}
{
DNN_NI
=
"default"
;
PDU_SESSION_TYPE
=
"IPv4"
;
IPV4_RANGE
=
"12.1.1.2 - 12.1.1.128"
;
IPV6_PREFIX
=
"2001:1:2::/64"
},
...
...
src/smf_app/smf_app.cpp
View file @
7ac31d52
...
...
@@ -93,12 +93,14 @@ int smf_app::apply_config(const smf_config& cfg) {
(
it
->
second
.
pdu_session_type
.
pdu_session_type
==
PDU_SESSION_TYPE_E_IPV4V6
))
{
int
range
=
be32toh
(
it
->
second
.
ue_pool_range_high
.
s_addr
)
-
be32toh
(
it
->
second
.
ue_pool_range_
high
.
s_addr
);
be32toh
(
it
->
second
.
ue_pool_range_
low
.
s_addr
);
paa_dynamic
::
get_instance
().
add_pool
(
it
->
second
.
dnn
,
pool_id
,
it
->
second
.
ue_pool_range_low
,
range
);
// TODO: check with dnn_label
Logger
::
smf_app
().
info
(
"Applied config %s"
,
it
->
second
.
dnn
.
c_str
());
paa
.
ipv4_address
=
it
->
second
.
ue_pool_range_low
;
std
::
string
ipv4_addr
(
inet_ntoa
(
paa
.
ipv4_address
));
Logger
::
smf_app
().
info
(
"PAA Ipv4 "
,
ipv4_addr
.
c_str
());
}
if
((
it
->
second
.
pdu_session_type
.
pdu_session_type
==
...
...
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