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
efe49c0c
Unverified
Commit
efe49c0c
authored
3 years ago
by
kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hardcode http2 port for fqdn case
parent
42e2de68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/ausf_app/ausf_config.cpp
src/ausf_app/ausf_config.cpp
+15
-3
No files found.
src/ausf_app/ausf_config.cpp
View file @
efe49c0c
...
...
@@ -218,7 +218,13 @@ int ausf_config::load(const std::string& config_file) {
IPV4_STR_ADDR_TO_INADDR
(
util
::
trim
(
address
).
c_str
(),
udm_ipv4_addr
,
"BAD IPv4 ADDRESS FORMAT FOR NRF !"
);
udm_addr
.
ipv4_addr
=
udm_ipv4_addr
;
udm_addr
.
ipv4_addr
=
udm_ipv4_addr
;
// udm_addr.port = udm_port;
// We hardcode udm port from config for the moment
if
(
!
(
udm_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_UDM_PORT
,
udm_port
)))
{
Logger
::
ausf_app
().
error
(
AUSF_CONFIG_STRING_UDM_PORT
"failed"
);
throw
(
AUSF_CONFIG_STRING_UDM_PORT
"failed"
);
}
udm_addr
.
port
=
udm_port
;
std
::
string
udm_api_version
=
{};
if
(
!
(
udm_cfg
.
lookupValue
(
...
...
@@ -278,10 +284,16 @@ int ausf_config::load(const std::string& config_file) {
IPV4_STR_ADDR_TO_INADDR
(
util
::
trim
(
address
).
c_str
(),
nrf_ipv4_addr
,
"BAD IPv4 ADDRESS FORMAT FOR NRF !"
);
nrf_addr
.
ipv4_addr
=
nrf_ipv4_addr
;
nrf_addr
.
port
=
nrf_port
;
nrf_addr
.
ipv4_addr
=
nrf_ipv4_addr
;
//
nrf_addr.port = nrf_port;
nrf_addr
.
api_version
=
"v1"
;
// TODO: to get API version from DNS
nrf_addr
.
fqdn
=
astring
;
// We hardcode nrf port from config for the moment
if
(
!
(
nrf_cfg
.
lookupValue
(
AUSF_CONFIG_STRING_NRF_PORT
,
nrf_port
)))
{
Logger
::
ausf_app
().
error
(
AUSF_CONFIG_STRING_NRF_PORT
"failed"
);
throw
(
AUSF_CONFIG_STRING_NRF_PORT
"failed"
);
}
nrf_addr
.
port
=
nrf_port
;
}
}
}
catch
(
const
SettingNotFoundException
&
nfex
)
{
...
...
This diff is collapsed.
Click to expand it.
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