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
47f85bf7
Commit
47f85bf7
authored
Sep 22, 2021
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nrf configuration options
parent
24b835f4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
25 deletions
+33
-25
build/scripts/build_ausf
build/scripts/build_ausf
+10
-7
etc/ausf.conf
etc/ausf.conf
+11
-11
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+4
-2
src/ausf_app/ausf_config.cpp
src/ausf_app/ausf_config.cpp
+8
-5
No files found.
build/scripts/build_ausf
View file @
47f85bf7
...
...
@@ -107,6 +107,8 @@ function main()
if
[[
$install_deps
-ne
0
]]
;
then
apt-get
install
cmake curl git libboost-all-dev libconfig++-dev libcurl4-gnutls-dev libgmp-dev libspdlog-dev nettle-dev
-y
read
-p
"Do you want to install Nlohmann Json ? <y/N> "
prompt
if
[[
$prompt
=
~
[
yY]
(
es
)
*
]]
;
then
if
[
!
-d
"
$OPENXGAUSF_DIR
/build/ext/json/git_src/build"
]
;
then
mkdir
$OPENXGAUSF_DIR
/build/ext/json/git_src/build
fi
...
...
@@ -114,6 +116,7 @@ function main()
cmake ..
make
make
install
fi
echo
"install successful!"
return
0
fi
...
...
@@ -134,7 +137,7 @@ function main()
cd
$OPENXGAUSF_DIR
/build/AUSF
if
[[
$jobs
-ne
0
]]
;
then
make
-j
4
make
-j
`
nproc
`
else
make
fi
...
...
etc/ausf.conf
View file @
47f85bf7
...
...
@@ -5,27 +5,27 @@ AUSF =
PID_DIRECTORY
=
"/var/run"
;
AUSF_NAME
=
"bupt-ausf"
;
NF_REGISTRATION
=
"
yes
"
;
NF_REGISTRATION
=
"
no
"
;
INTERFACES
:{
SBI_AUSF
:{
INTERFACE_NAME
=
"ens3
3
"
;
#interface for providing ausf service
IPV4_ADDRESS
=
"192.168.
83.130
/24"
;
#address for intercafe (cidr)
INTERFACE_NAME
=
"ens3
2
"
;
#interface for providing ausf service
IPV4_ADDRESS
=
"192.168.
2.35
/24"
;
#address for intercafe (cidr)
PORT
=
8383
;
#ausf service port
PPID
=
60
;
};
NUDM
:{
INTERFACE_NAME
=
"ens3
3
"
;
#interface for providing udm service
IPV4_ADDRESS
=
"192.168.
83.130
/24"
;
#address for intercafe (cidr)
INTERFACE_NAME
=
"ens3
2
"
;
#interface for providing udm service
IPV4_ADDRESS
=
"192.168.
2.35
/24"
;
#address for intercafe (cidr)
PORT
=
8181
;
#udm service port
};
NAMF
:{
INTERFACE_NAME
=
"ens3
3
"
;
#interface for request for amf service
IPV4_ADDRESS
=
"192.168.
83.130
/24"
;
#amf address (cidr)
INTERFACE_NAME
=
"ens3
2
"
;
#interface for request for amf service
IPV4_ADDRESS
=
"192.168.
2.35
/24"
;
#amf address (cidr)
PORT
=
8383
;
#amf port
};
NNRF
:{
INTERFACE_NAME
=
"ens3
3
"
;
IPV4_ADDRESS
=
"192.168.83.129
/24"
;
INTERFACE_NAME
=
"ens3
2
"
;
IPV4_ADDRESS
=
"192.168.2.35
/24"
;
PORT
=
80
;
API_VERSION
=
"v1"
};
...
...
src/ausf_app/ausf_app.cpp
View file @
47f85bf7
...
...
@@ -96,9 +96,11 @@ ausf_app::ausf_app()
unsigned
int
microsecond
=
10000
;
// 10ms
usleep
(
microsecond
);
register_to_nrf
();
}
timer_id_t
tid
=
itti_inst
->
timer_setup
(
20
,
0
,
TASK_AUSF_APP
,
TASK_AUSF_APP_PERIODIC_GETINFO
,
0
);
timer_nrf_heartbeat
=
itti_inst
->
timer_setup
(
1
,
0
,
TASK_AUSF_APP
,
TASK_AUSF_APP_TIMEOUT_NRF_HEARTBEAT
,
0
);
timer_id_t
tid
=
itti_inst
->
timer_setup
(
20
,
0
,
TASK_AUSF_APP
,
TASK_AUSF_APP_PERIODIC_GETINFO
,
0
);
}
Logger
::
ausf_app
().
startup
(
"Started"
);
}
void
ausf_app
::
register_to_nrf
(){
...
...
src/ausf_app/ausf_config.cpp
View file @
47f85bf7
...
...
@@ -238,11 +238,14 @@ void ausf_config::display() {
Logger
::
config
().
info
(
" ip ...................: %s"
,
inet_ntoa
(
namf
.
addr4
));
Logger
::
config
().
info
(
" port .................: %d"
,
namf
.
port
);
if
(
!
nf_registion
.
compare
(
"yes"
))
{
Logger
::
config
().
info
(
"- Nnrf Networking:"
);
Logger
::
config
().
info
(
" iface ................: %s"
,
nnrf
.
if_name
.
c_str
());
Logger
::
config
().
info
(
" ip ...................: %s"
,
inet_ntoa
(
nnrf
.
addr4
));
Logger
::
config
().
info
(
" port .................: %d"
,
nnrf
.
port
);
Logger
::
config
().
info
(
" api_version...........: %s"
,
nnrf
.
api_version
.
c_str
());
}
// Logger::config().info(" HTTP2 port ............: %d", nudm_http2_port);
...
...
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