Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
655c0cf3
Commit
655c0cf3
authored
May 27, 2022
by
kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default var added for ext NRF and NSSF
parent
41822e76
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
etc/amf.conf
etc/amf.conf
+6
-6
scripts/entrypoint.sh
scripts/entrypoint.sh
+2
-0
src/utils/fqdn.cpp
src/utils/fqdn.cpp
+1
-0
No files found.
etc/amf.conf
View file @
655c0cf3
...
...
@@ -100,10 +100,10 @@ AMF =
UDM
:
{
IPV4_ADDRESS
=
"
127.0.0.1"
;
# YOUR UDM CONFIG HERE
PORT
=
80
;
# YOUR UDM CONFIG HERE (default: 80)
API_VERSION
=
"v2"
;
# YOUR UDM API VERSION FOR SBI CONFIG HERE
FQDN
=
"
udm-fqdn"
;
# YOUR UDM FQDN CONFIG HERE
IPV4_ADDRESS
=
"
@UDM_IPV4_ADDRESS@"
;
# YOUR UDM CONFIG HERE
PORT
=
@
UDM_PORT
@;
# YOUR UDM CONFIG HERE (default: 80)
API_VERSION
=
"v2"
;
# YOUR UDM API VERSION FOR SBI CONFIG HERE
FQDN
=
"
@UDM_FQDN@"
;
# YOUR UDM FQDN CONFIG HERE
};
NSSF
:
...
...
@@ -120,11 +120,11 @@ AMF =
# STRING, {"yes", "no"},
NF_REGISTRATION
=
"@NF_REGISTRATION@"
;
# Set to yes if AMF resgisters to an NRF
NRF_SELECTION
=
"@NRF_SELECTION@"
;
# Set to yes to enable NRF discovery and selection
EXTERNAL_NRF
=
"
no"
;
# Set to yes if AMF works with an external NRF
EXTERNAL_NRF
=
"
@EXTERNAL_NRF@"
;
# Set to yes if AMF works with an external NRF
SMF_SELECTION
=
"@SMF_SELECTION@"
;
# Set to yes to enable SMF discovery and selection
EXTERNAL_AUSF
=
"@EXTERNAL_AUSF@"
;
# Set to yes if AMF works with an external AUSF
EXTERNAL_UDM
=
"@EXTERNAL_UDM@"
;
# Set to yes if AMF works with an external UDM
EXTERNAL_NSSF
=
"
no"
;
# Set to yes if AMF works with an external NSSF
EXTERNAL_NSSF
=
"
@EXTERNAL_NSSF@"
;
# Set to yes if AMF works with an external NSSF
USE_FQDN_DNS
=
"@USE_FQDN_DNS@"
;
# Set to yes if AMF relies on a DNS to resolve NRF/SMF/UDM/AUSF's FQDN
USE_HTTP2
=
"@USE_HTTP2@"
;
# Set to yes to enable HTTP2 for AMF server
}
...
...
scripts/entrypoint.sh
View file @
655c0cf3
...
...
@@ -5,6 +5,8 @@ set -euo pipefail
CONFIG_DIR
=
"/openair-amf/etc"
# Default values
EXTERNAL_NRF
=
${
EXTERNAL_NRF
:-
no
}
EXTERNAL_NSSF
=
${
EXTERNAL_NSSF
:-
no
}
EXTERNAL_AUSF
=
${
EXTERNAL_AUSF
:-
no
}
EXTERNAL_UDM
=
${
EXTERNAL_UDM
:-
no
}
UDM_IPV4_ADDRESS
=
${
UDM_IPV4_ADDRESS
:-
0
.0.0.0
}
...
...
src/utils/fqdn.cpp
View file @
655c0cf3
...
...
@@ -28,6 +28,7 @@ bool fqdn::resolve(
const
std
::
string
&
host_name
,
std
::
string
&
address
,
uint32_t
&
port
,
uint8_t
&
addr_type
,
const
std
::
string
&
protocol
)
{
try
{
Logger
::
amf_app
().
debug
(
"Resolving DNS:- %s"
,
host_name
.
c_str
());
boost
::
asio
::
io_context
io_context
=
{};
boost
::
asio
::
ip
::
tcp
::
resolver
resolver
{
io_context
};
...
...
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