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
8280e28c
Commit
8280e28c
authored
Jul 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove AMF addr from AUSF
parent
fc482f37
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
58 deletions
+2
-58
etc/ausf.conf
etc/ausf.conf
+1
-9
etc/ausf.env
etc/ausf.env
+1
-3
scripts/entrypoint.sh
scripts/entrypoint.sh
+0
-1
src/ausf_app/ausf_config.cpp
src/ausf_app/ausf_config.cpp
+0
-35
src/ausf_app/ausf_config.hpp
src/ausf_app/ausf_config.hpp
+0
-10
No files found.
etc/ausf.conf
View file @
8280e28c
...
...
@@ -19,14 +19,6 @@ AUSF =
UDM
:{
IPV4_ADDRESS
=
"@UDM_IP_ADDRESS@"
;
# YOUR NETWORK CONFIG HERE
PORT
= @
UDM_PORT
@;
# YOUR NETWORK CONFIG HERE (default: 80)
API_VERSION
=
"@UDM_VERSION_NB@"
;
# YOUR A
MF A
PI VERSION FOR UDM CONFIG HERE
API_VERSION
=
"@UDM_VERSION_NB@"
;
# YOUR API VERSION FOR UDM CONFIG HERE
};
# AMF Information
AMF
:{
IPV4_ADDRESS
=
"@AMF_IP_ADDRESS@"
;
# YOUR NETWORK CONFIG HERE (default: 80)
PORT
= @
AMF_PORT
@;
# YOUR NETWORK CONFIG HERE (default: 80)
API_VERSION
=
"@AMF_VERSION_NB@"
;
# YOUR AMF API VERSION FOR UDM CONFIG HERE
};
};
etc/ausf.env
View file @
8280e28c
...
...
@@ -4,5 +4,3 @@ AUSF_NAME=OAI-AUSF
SBI_IF_NAME=eth0
UDM_IP_ADDRESS=192.168.66.8
UDM_VERSION_NB=v1
\ No newline at end of file
AMF_IP_ADDRESS=192.168.66.2
AMF_VERSION_NB=v1
scripts/entrypoint.sh
View file @
8280e28c
...
...
@@ -5,7 +5,6 @@ set -euo pipefail
CONFIG_DIR
=
"/openair-ausf/etc"
SBI_PORT
=
${
SBI_PORT
:-
80
}
UDM_PORT
=
${
UDM_PORT
:-
80
}
AMF_PORT
=
${
AMF_PORT
:-
80
}
for
c
in
${
CONFIG_DIR
}
/
*
.conf
;
do
# grep variable names (format: ${VAR}) from template to be rendered
...
...
src/ausf_app/ausf_config.cpp
View file @
8280e28c
...
...
@@ -59,10 +59,6 @@ ausf_config::ausf_config() : sbi(), ausf_name(), pid_dir(), instance() {
udm_addr
.
ipv4_addr
.
s_addr
=
INADDR_ANY
;
udm_addr
.
port
=
80
;
udm_addr
.
api_version
=
"v1"
;
amf_addr
.
ipv4_addr
.
s_addr
=
INADDR_ANY
;
amf_addr
.
port
=
80
;
amf_addr
.
api_version
=
"v1"
;
}
//------------------------------------------------------------------------------
...
...
@@ -154,29 +150,6 @@ int ausf_config::load(const std::string& config_file) {
}
udm_addr
.
api_version
=
udm_api_version
;
// AMF
const
Setting
&
amf_cfg
=
ausf_cfg
[
AUSF_CONFIG_STRING_AMF
];
struct
in_addr
amf_ipv4_addr
;
unsigned
int
amf_port
=
0
;
std
::
string
amf_api_version
;
amf_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_AMF_IPV4_ADDRESS
,
astring
);
IPV4_STR_ADDR_TO_INADDR
(
util
::
trim
(
astring
).
c_str
(),
amf_ipv4_addr
,
"BAD IPv4 ADDRESS FORMAT FOR AMF !"
);
amf_addr
.
ipv4_addr
=
amf_ipv4_addr
;
if
(
!
(
amf_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_AMF_PORT
,
amf_port
)))
{
Logger
::
ausf_app
().
error
(
AUSF_CONFIG_STRING_AMF_PORT
"failed"
);
throw
(
AUSF_CONFIG_STRING_AMF_PORT
"failed"
);
}
amf_addr
.
port
=
amf_port
;
if
(
!
(
amf_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_API_VERSION
,
amf_api_version
)))
{
Logger
::
ausf_app
().
error
(
AUSF_CONFIG_STRING_API_VERSION
"failed"
);
throw
(
AUSF_CONFIG_STRING_API_VERSION
"failed"
);
}
amf_addr
.
api_version
=
amf_api_version
;
}
catch
(
const
SettingNotFoundException
&
nfex
)
{
Logger
::
ausf_app
().
error
(
"%s : %s"
,
nfex
.
what
(),
nfex
.
getPath
());
return
RETURNerror
;
...
...
@@ -204,14 +177,6 @@ void ausf_config::display() {
Logger
::
config
().
info
(
" Port..................: %lu "
,
udm_addr
.
port
);
Logger
::
config
().
info
(
" API version...........: %s"
,
udm_addr
.
api_version
.
c_str
());
Logger
::
config
().
info
(
"- AMF:"
);
Logger
::
config
().
info
(
" IPv4 Addr.............: %s"
,
inet_ntoa
(
*
((
struct
in_addr
*
)
&
amf_addr
.
ipv4_addr
)));
Logger
::
config
().
info
(
" Port.................: %lu "
,
amf_addr
.
port
);
Logger
::
config
().
info
(
" API version..........: %s"
,
amf_addr
.
api_version
.
c_str
());
}
//------------------------------------------------------------------------------
...
...
src/ausf_app/ausf_config.hpp
View file @
8280e28c
...
...
@@ -61,10 +61,6 @@
#define AUSF_CONFIG_STRING_UDM_IPV4_ADDRESS "IPV4_ADDRESS"
#define AUSF_CONFIG_STRING_UDM_PORT "PORT"
#define AUSF_CONFIG_STRING_AMF "AMF"
#define AUSF_CONFIG_STRING_AMF_IPV4_ADDRESS "IPV4_ADDRESS"
#define AUSF_CONFIG_STRING_AMF_PORT "PORT"
using
namespace
libconfig
;
namespace
config
{
...
...
@@ -97,12 +93,6 @@ class ausf_config {
unsigned
int
port
;
std
::
string
api_version
;
}
udm_addr
;
struct
{
struct
in_addr
ipv4_addr
;
unsigned
int
port
;
std
::
string
api_version
;
}
amf_addr
;
};
}
// namespace config
...
...
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