Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDR
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-UDR
Commits
715d08f3
Commit
715d08f3
authored
Mar 30, 2022
by
chen2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置修改
parent
61f3caf8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
43 deletions
+109
-43
build/scripts/build_udr
build/scripts/build_udr
+7
-0
etc/udr.conf
etc/udr.conf
+11
-38
etc/udr.template
etc/udr.template
+59
-0
etc/udr_docker.conf
etc/udr_docker.conf
+32
-5
No files found.
build/scripts/build_udr
View file @
715d08f3
...
@@ -139,6 +139,13 @@ function main()
...
@@ -139,6 +139,13 @@ function main()
make
make
fi
fi
if
[
!
-d
/etc/5gc/config
]
;
then
$SUDO
mkdir
-p
/etc/5gc/config
fi
$SUDO
cp
-v
$OPENXGUDR_DIR
/etc/udr.conf /etc/5gc/config/
$SUDO
cp
-v
$OPENXGUDR_DIR
/etc/udr_docker.conf /etc/5gc/config/
$SUDO
cp
-upv
$OPENXGUDR_DIR
/build/UDR/udr
$INSTALL_DIR
&&
$SUDO
chmod
755
$INSTALL_DIR
/udr
&&
echo_success
"UDR installed"
$SUDO
cp
-upv
$OPENXGUDR_DIR
/build/UDR/udr
$INSTALL_DIR
&&
$SUDO
chmod
755
$INSTALL_DIR
/udr
&&
echo_success
"UDR installed"
return
0
return
0
...
...
etc/udr.conf
100644 → 100755
View file @
715d08f3
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udr configuration file
## udr configuration file
UDR
=
UDR
=
{
{
INSTANCE_ID
=
@
INSTANCE
@
;
# 0 is the default
INSTANCE_ID
=
10
;
# 0 is the default
PID_DIRECTORY
=
"
@PID_DIRECTORY@"
;
# /var/run is the default
PID_DIRECTORY
=
"
/var/run"
;
# /var/run is the default
API_VERSION
=
"v2"
;
# v2 is the default
API_VERSION
=
"v2"
;
# v2 is the default
INTERFACES
:
INTERFACES
:
{
{
# UDR binded interface for Nudr interface
# UDR binded interface for Nudr interface
SBI
:
SBI
:
{
{
INTERFACE_NAME
=
"
@UDR_INTERFACE_NAME_FOR_SBI@"
;
# YOUR NETWORK CONFIG HERE
INTERFACE_NAME
=
"
ens32"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"read"
;
IPV4_ADDRESS
=
"read"
;
PORT
=
8081
;
# YOUR NETWORK CONFIG HERE
PORT
=
8081
;
# YOUR NETWORK CONFIG HERE
};
};
};
};
MYSQL
:
MYSQL
:
{
{
## MySQL mandatory options
## MySQL mandatory options
MYSQL_SERVER
=
"
@MYSQL_SERVER@"
;
# MySQL Server address
MYSQL_SERVER
=
"
127.0.0.1"
;
# MySQL Server address
MYSQL_USER
=
"
@MYSQL_USER@"
;
# Database server login
MYSQL_USER
=
"
root"
;
# Database server login
MYSQL_PASS
=
"
@MYSQL_PASS@"
;
# Database server password
MYSQL_PASS
=
"
root"
;
# Database server password
MYSQL_DB
=
"
@MYSQL_DB@"
;
# Your database name
MYSQL_DB
=
"
Witcomm-UDR-DB"
;
# Your database name
# MYSQL_PORT = "@MYSQL_PORT@"; # MySQL Server port, 0 is the defaul
t
MYSQL_PORT
=
3306
# MySQL Server por
t
};
};
};
};
...
...
etc/udr.template
0 → 100644
View file @
715d08f3
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udr configuration file
UDR =
{
INSTANCE_ID = @INSTANCE@; # 0 is the default
PID_DIRECTORY = "@PID_DIRECTORY@"; # /var/run is the default
API_VERSION = "v2"; # v2 is the default
INTERFACES:
{
# UDR binded interface for Nudr interface
SBI:
{
INTERFACE_NAME = "@UDR_INTERFACE_NAME_FOR_SBI@"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8081; # YOUR NETWORK CONFIG HERE
};
};
MYSQL:
{
## MySQL mandatory options
MYSQL_SERVER = "@MYSQL_SERVER@"; # MySQL Server address
MYSQL_USER = "@MYSQL_USER@"; # Database server login
MYSQL_PASS = "@MYSQL_PASS@"; # Database server password
MYSQL_DB = "@MYSQL_DB@"; # Your database name
# MYSQL_PORT = "@MYSQL_PORT@"; # MySQL Server port, 0 is the default
};
};
etc/udr_docker.conf
100644 → 100755
View file @
715d08f3
## udr configuration file
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udr configuration file
# 123
UDR
=
UDR
=
{
{
INSTANCE_ID
=
10
;
# 0 is the default
INSTANCE_ID
=
10
;
# 0 is the default
PID_DIRECTORY
=
"/var/run"
;
# /var/run is the default
PID_DIRECTORY
=
"/var/run"
;
# /var/run is the default
API_VERSION
=
"v2"
;
# v2 is the default
API_VERSION
=
"v2"
;
# v2 is the default
INTERFACES
:
INTERFACES
:
{
{
# UDR binded interface for Nudr interface
# UDR binded interface for Nudr interface
...
@@ -21,8 +48,8 @@ UDR =
...
@@ -21,8 +48,8 @@ UDR =
MYSQL
:
MYSQL
:
{
{
## MySQL mandatory options
## MySQL mandatory options
MYSQL_SERVER
=
"172.1
6
.200.10"
;
# MySQL Server address
MYSQL_SERVER
=
"172.1
1
.200.10"
;
# MySQL Server address
MYSQL_USER
=
"
yunshou
"
;
# Database server login
MYSQL_USER
=
"
root
"
;
# Database server login
MYSQL_PASS
=
"123456"
;
# Database server password
MYSQL_PASS
=
"123456"
;
# Database server password
MYSQL_DB
=
"Witcomm-UDR-DB"
;
# Your database name
MYSQL_DB
=
"Witcomm-UDR-DB"
;
# Your database name
# MYSQL_PORT = 3306 # MySQL Server port
# MYSQL_PORT = 3306 # MySQL Server port
...
...
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