Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
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-AUSF
Commits
ea1dcaaa
Commit
ea1dcaaa
authored
Jul 14, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nrf cfg successfully
parent
387abb6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
etc/ausf.conf
etc/ausf.conf
+11
-6
src/utils/ausf_config.cpp
src/utils/ausf_config.cpp
+1
-1
No files found.
etc/ausf.conf
View file @
ea1dcaaa
...
@@ -5,25 +5,30 @@ AUSF =
...
@@ -5,25 +5,30 @@ AUSF =
PID_DIRECTORY
=
"/var/run"
;
PID_DIRECTORY
=
"/var/run"
;
AUSF_NAME
=
"bupt-ausf"
;
AUSF_NAME
=
"bupt-ausf"
;
NF_REGISTRATION
=
"yes"
;
INTERFACES
:{
INTERFACES
:{
SBI_AUSF
:{
SBI_AUSF
:{
INTERFACE_NAME
=
"ens33"
;
#interface for providing ausf service
INTERFACE_NAME
=
"ens33"
;
#interface for providing ausf service
IPV4_ADDRESS
=
"192.168.
2.101
/24"
;
#address for intercafe (cidr)
IPV4_ADDRESS
=
"192.168.
83.130
/24"
;
#address for intercafe (cidr)
PORT
=
8383
;
#ausf service port
PORT
=
8383
;
#ausf service port
PPID
=
60
;
PPID
=
60
;
};
};
NUDM
:{
NUDM
:{
INTERFACE_NAME
=
"ens3
2
"
;
#interface for providing udm service
INTERFACE_NAME
=
"ens3
3
"
;
#interface for providing udm service
IPV4_ADDRESS
=
"192.168.
2.35
/24"
;
#address for intercafe (cidr)
IPV4_ADDRESS
=
"192.168.
83.130
/24"
;
#address for intercafe (cidr)
PORT
=
8181
;
#udm service port
PORT
=
8181
;
#udm service port
};
};
NAMF
:{
NAMF
:{
INTERFACE_NAME
=
"ens33"
;
#interface for request for amf service
INTERFACE_NAME
=
"ens33"
;
#interface for request for amf service
IPV4_ADDRESS
=
"192.168.
2.101
/24"
;
#amf address (cidr)
IPV4_ADDRESS
=
"192.168.
83.130
/24"
;
#amf address (cidr)
PORT
=
8383
;
#amf port
PORT
=
8383
;
#amf port
};
};
};
NNRF
:{
INTERFACE_NAME
=
"ens33"
;
IPV4_ADDRESS
=
"192.168.83.129/24"
;
PORT
=
80
;
};
};
};
};
src/utils/ausf_config.cpp
View file @
ea1dcaaa
...
@@ -257,7 +257,7 @@ void ausf_config::display() {
...
@@ -257,7 +257,7 @@ void ausf_config::display() {
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
int
ausf_config
::
:
load_interface
(
const
libconfig
::
Setting
&
if_cfg
,
interface_cfg_t
&
cfg
)
{
int
ausf_config
::
load_interface
(
const
libconfig
::
Setting
&
if_cfg
,
interface_cfg_t
&
cfg
)
{
if_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_INTERFACE_NAME
,
cfg
.
if_name
);
if_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_INTERFACE_NAME
,
cfg
.
if_name
);
util
::
trim
(
cfg
.
if_name
);
util
::
trim
(
cfg
.
if_name
);
if
(
not
boost
::
iequals
(
cfg
.
if_name
,
"none"
))
{
if
(
not
boost
::
iequals
(
cfg
.
if_name
,
"none"
))
{
...
...
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