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
854858ca
Commit
854858ca
authored
Sep 27, 2021
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dockerfile and ausf ip
parent
8da86738
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
9 deletions
+30
-9
docker/Dockerfile
docker/Dockerfile
+16
-4
etc/register+stateless.conf
etc/register+stateless.conf
+2
-2
src/amf-app/amf_config.cpp
src/amf-app/amf_config.cpp
+5
-2
src/amf-app/amf_config.hpp
src/amf-app/amf_config.hpp
+7
-1
No files found.
docker/Dockerfile
View file @
854858ca
FROM
ubuntu:18.04
ADD
. /opt/5gc/amf
ENV
DEBIAN_FRONTEND=noninteractive
RUN
export
http_proxy
=
http://10.112.222.16:8123
RUN
export
https_proxy
=
http://10.112.222.16:8123
RUN
mkdir
amf
RUN
cd
amf
COPY
./amf /amf
RUN
apt-get update
-y
&&
\
apt-get
install
--no-install-recommends
-y
net-tools vim inetutils-ping
&&
\
mkdir
/opt/5gc/log
apt-get
install
--no-install-recommends
-y
net-tools vim inetutils-ping git
RUN
apt-get
install
-y
update-notifier-common
RUN
git config
--global
http.proxy http://10.112.222.16:8123
RUN
git config
--global
https.proxy http://10.112.222.16:8123
RUN
/bin/bash
-c
"if [[ -v NEEDED_GIT_PROXY ]]; then git config --global http.proxy
$NEEDED_GIT_PROXY
; fi"
RUN
git config
--global
https.postBuffer 123289600
RUN
git config
--global
http.sslverify
false
RUN
./amf/build/scripts/build_amf
-I
-f
RUN
./amf/build/scripts/build_amf
-c
-b
Debug
-j
EXPOSE
8282 38412/sctp
CMD
["/
opt/5gc/amf/start.
sh"]
CMD
["/
bin/ba
sh"]
etc/register+stateless.conf
View file @
854858ca
...
...
@@ -69,8 +69,8 @@ AMF =
# AMF binded interface for Nausf interface
NAUSF
:
{
INTERFACE_NAME
=
"e
ns18
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"
read
"
;
INTERFACE_NAME
=
"e
th0
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"
192.168.199.10
"
;
PORT
=
8383
;
# YOUR NETWORK CONFIG HERE
};
...
...
src/amf-app/amf_config.cpp
View file @
854858ca
...
...
@@ -197,7 +197,10 @@ int amf_config::load(const std::string& config_file) {
if
(
is_Nausf
)
{
const
Setting
&
nausf_amf_cfg
=
new_if_cfg
[
AMF_CONFIG_STRING_INTERFACE_NAUSF
];
load_interface
(
nausf_amf_cfg
,
nausf
);
// load_interface(nausf_amf_cfg, nausf);
nausf_amf_cfg
.
lookupValue
(
AMF_CONFIG_STRING_INTERFACE_NAME
,
nausf
.
if_name
);
nausf_amf_cfg
.
lookupValue
(
AMF_CONFIG_STRING_IPV4_ADDRESS
,
nausf
.
addr4
);
nausf_amf_cfg
.
lookupValue
(
AMF_CONFIG_STRING_PORT
,
nausf
.
port
);
}
const
Setting
&
n11_cfg
=
new_if_cfg
[
AMF_CONFIG_STRING_INTERFACE_N11
];
load_interface
(
n11_cfg
,
n11
);
...
...
@@ -461,7 +464,7 @@ void amf_config::display() {
Logger
::
config
().
info
(
" iface ................: %s"
,
nausf
.
if_name
.
c_str
());
Logger
::
config
().
info
(
" ip ...................: %s"
,
inet_ntoa
(
nausf
.
addr4
));
" ip ...................: %s"
,
nausf
.
addr4
.
c_str
(
));
Logger
::
config
().
info
(
" port .................: %d"
,
nausf
.
port
);
}
else
{
Logger
::
config
().
warn
(
...
...
src/amf-app/amf_config.hpp
View file @
854858ca
...
...
@@ -170,6 +170,11 @@ typedef struct {
bool
selected
;
}
smf_inst_t
;
typedef
struct
{
std
::
string
if_name
;
std
::
string
addr4
;
unsigned
int
port
;
}
ausf_if
;
class
amf_config
{
public:
amf_config
();
...
...
@@ -185,7 +190,8 @@ class amf_config {
std
::
string
pid_dir
;
interface_cfg_t
n2
;
interface_cfg_t
n11
;
interface_cfg_t
nausf
;
//interface_cfg_t nausf;
ausf_if
nausf
;
itti_cfg_t
itti
;
unsigned
int
statistics_interval
;
std
::
string
AMF_Name
;
...
...
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