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
991fed8a
Commit
991fed8a
authored
Jul 14, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nrf api_version
parent
ea1dcaaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
etc/ausf.conf
etc/ausf.conf
+1
-0
src/utils/ausf_config.cpp
src/utils/ausf_config.cpp
+2
-1
src/utils/ausf_config.hpp
src/utils/ausf_config.hpp
+2
-1
No files found.
etc/ausf.conf
View file @
991fed8a
...
@@ -27,6 +27,7 @@ AUSF =
...
@@ -27,6 +27,7 @@ AUSF =
INTERFACE_NAME
=
"ens33"
;
INTERFACE_NAME
=
"ens33"
;
IPV4_ADDRESS
=
"192.168.83.129/24"
;
IPV4_ADDRESS
=
"192.168.83.129/24"
;
PORT
=
80
;
PORT
=
80
;
API_VERSION
=
"v1"
};
};
};
};
};
};
...
...
src/utils/ausf_config.cpp
View file @
991fed8a
...
@@ -148,7 +148,7 @@ int ausf_config::load(const std::string &config_file) {
...
@@ -148,7 +148,7 @@ int ausf_config::load(const std::string &config_file) {
const
Setting
&
nnrf_cfg
=
new_if_cfg
[
AUSF_CONFIG_STRING_INTERFACE_NNRF
];
const
Setting
&
nnrf_cfg
=
new_if_cfg
[
AUSF_CONFIG_STRING_INTERFACE_NNRF
];
load_interface
(
nnrf_cfg
,
nnrf
);
load_interface
(
nnrf_cfg
,
nnrf
);
nnrf_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_API_VERSION
,
nnrf
.
api_version
);
// const Setting &udr_addr_pool = nudm_cfg[AUSF_CONFIG_STRING_UDR_INSTANCES_POOL];
// const Setting &udr_addr_pool = nudm_cfg[AUSF_CONFIG_STRING_UDR_INSTANCES_POOL];
// int count = udr_addr_pool.getLength();
// int count = udr_addr_pool.getLength();
// for (int i = 0; i < count; i++) {
// for (int i = 0; i < count; i++) {
...
@@ -242,6 +242,7 @@ void ausf_config::display() {
...
@@ -242,6 +242,7 @@ void ausf_config::display() {
Logger
::
config
().
info
(
" iface ................: %s"
,
nnrf
.
if_name
.
c_str
());
Logger
::
config
().
info
(
" iface ................: %s"
,
nnrf
.
if_name
.
c_str
());
Logger
::
config
().
info
(
" ip ...................: %s"
,
inet_ntoa
(
nnrf
.
addr4
));
Logger
::
config
().
info
(
" ip ...................: %s"
,
inet_ntoa
(
nnrf
.
addr4
));
Logger
::
config
().
info
(
" port .................: %d"
,
nnrf
.
port
);
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);
// Logger::config().info(" HTTP2 port ............: %d", nudm_http2_port);
...
...
src/utils/ausf_config.hpp
View file @
991fed8a
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
#define AUSF_CONFIG_STRING_PORT "PORT"
#define AUSF_CONFIG_STRING_PORT "PORT"
#define AUSF_CONFIG_STRING_PPID "PPID"
#define AUSF_CONFIG_STRING_PPID "PPID"
#define AUSF_CONFIG_STRING_NF_REGISTRATION "NF_REGISTRATION"
#define AUSF_CONFIG_STRING_NF_REGISTRATION "NF_REGISTRATION"
#define AUSF_CONFIG_STRING_API_VERSION "API_VERSION"
// #define AUSF_CONFIG_STRING_UDM_INSTANCES_POOL "UDM_INSTANCES_POOL"
// #define AUSF_CONFIG_STRING_UDM_INSTANCES_POOL "UDM_INSTANCES_POOL"
// #define AUSF_CONFIG_STRING_UDM_INSTANCE_ID "UDM_INSTANCE_ID"
// #define AUSF_CONFIG_STRING_UDM_INSTANCE_ID "UDM_INSTANCE_ID"
...
@@ -109,6 +109,7 @@ typedef struct interface_cfg_s {
...
@@ -109,6 +109,7 @@ typedef struct interface_cfg_s {
struct
in6_addr
addr6
;
struct
in6_addr
addr6
;
unsigned
int
mtu
;
unsigned
int
mtu
;
unsigned
int
port
;
unsigned
int
port
;
std
::
string
api_version
;
}
interface_cfg_t
;
}
interface_cfg_t
;
...
...
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