Commit 805cae99 authored by chen2022's avatar chen2022

配置修改

parent 47f85bf7
...@@ -4,7 +4,7 @@ THIS_SCRIPT_PATH=$(dirname $(readlink -f $0)) ...@@ -4,7 +4,7 @@ THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
OPENXGAUSF_DIR=${THIS_SCRIPT_PATH%/*} OPENXGAUSF_DIR=${THIS_SCRIPT_PATH%/*}
OPENXGAUSF_DIR=${OPENXGAUSF_DIR%/*} OPENXGAUSF_DIR=${OPENXGAUSF_DIR%/*}
INSTALL_DIR=/usr/local/bin
############################### ###############################
## echo and family ## echo and family
############################### ###############################
...@@ -141,6 +141,17 @@ function main() ...@@ -141,6 +141,17 @@ function main()
else else
make make
fi fi
if [ ! -d /etc/5gc/config ]; then
$SUDO mkdir -p /etc/5gc/config
fi
$SUDO cp -v $OPENXGAUSF_DIR/etc/ausf.conf /etc/5gc/config/
$SUDO cp -v $OPENXGAUSF_DIR/etc/ausf_docker.conf /etc/5gc/config/
$SUDO chmod 755 $OPENXGAUSF_DIR/build/AUSF/ausf
$SUDO cp -upv $OPENXGAUSF_DIR/build/AUSF/ausf $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/ausf && echo_success "AUSF installed"
return 0
} }
main $@ main $@
## amf configuration file
AUSF =
{
INSTANCE_ID = @INSTANCE_ID@; #10
PID_DIRECTORY = "/var/run";
AUSF_NAME = "bupt-ausf";
NF_REGISTRATION = "no";
INTERFACES:{
SBI_AUSF:{
INTERFACE_NAME = "@INTERFACE_NAME@"; #interface for providing ausf service
IPV4_ADDRESS = "@IPV4_ADDRESS@"; #address for intercafe (cidr)
PORT = @PORT@; #ausf service port
PPID = @PPID@;
};
NUDM:{
INTERFACE_NAME = "@INTERFACE_NAME@"; #interface for providing udm service
IPV4_ADDRESS = "@IPV4_ADDRESS@"; #address for intercafe (cidr)
PORT = @PORT@; #udm service port
};
NAMF:{
INTERFACE_NAME = "@INTERFACE_NAME@"; #interface for request for amf service
IPV4_ADDRESS = "@IPV4_ADDRESS@"; #amf address (cidr)
PORT = @PORT@; #amf port
};
NNRF:{
INTERFACE_NAME = "@INTERFACE_NAME@";
PORT = @PORT@;
API_VERSION = "@API_VERSION@"
};
};
};
## amf 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,Fengjiao He,Hongxin Wang
# date 2020
# email: contact@openairinterface.org
################################################################################
## ausf configuration file
AUSF = AUSF =
{ {
INSTANCE_ID = 10; #10 INSTANCE_ID = 10; #10
PID_DIRECTORY = "/var/run"; PID_DIRECTORY = "/var/run";
######################################################################## NG SETUP RESPONSE IEs ############################################################
AUSF_NAME = "bupt-ausf"; AUSF_NAME = "bupt-ausf";
# GUAMI:{MCC = "110"; MNC = "11"; RegionID = "128"; AMFSetID = "4"; AMFPointer = "1"}
# SERVED_GUAMI_LIST = (
# {MCC = "110"; MNC = "11"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "0"}, #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
# {MCC = "110"; MNC = "11"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "1"} #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
# );
# RELATIVE_CAPACITY = 30;
# PLMN_SUPPORT_LIST = (
# {MCC = "110"; MNC = "11"; TAC = 100;
# SLICE_SUPPORT_LIST = (
# {SST = "1"; SD = "none"},
# {SST = "1"; SD = "12"}
# )
# }
# );
##################################################################### clause 9.2.6.2, 3gpp ts38.413 ####################################################
#STATISTICS_TIMER_INTERVAL = 20; #second
INTERFACES:{ INTERFACES:{
SBI_AUSF:{ SBI_AUSF:{
...@@ -32,36 +42,15 @@ AUSF = ...@@ -32,36 +42,15 @@ AUSF =
}; };
NUDM:{ NUDM:{
INTERFACE_NAME = "eth0"; #interface for providing udm service INTERFACE_NAME = "eth0"; #interface for providing udm service
IPV4_ADDRESS = "172.16.200.12/24"; #address for intercafe (cidr) IPV4_ADDRESS = "172.11.200.12/24"; #address for intercafe (cidr)
PORT = 8181; #udm service port PORT = 8181; #udm service port
#PPID = 60; #PPID = 60;
}; };
NAMF:{ NAMF:{
INTERFACE_NAME = "eth0"; #interface for request for amf service INTERFACE_NAME = "eth0"; #interface for request for amf service
IPV4_ADDRESS = "172.16.200.14/24"; #amf address (cidr) IPV4_ADDRESS = "172.11.200.14/24"; #amf address (cidr)
PORT = 8383; #amf port PORT = 8383; #amf port
}; };
# NUDR:{
# INTERFACE_NAME = "ens33"; #interface for request for udr service
# IPV4_ADDRESS = "192.168.21.133/24"; #udr address (cidr)
# PORT = 8080; #udr port
# VERSION = "v2";
# };
}; };
# CORE_CONFIGURATION:{
# EMERGENCY_SUPPORT = "false";
# };
# AUTHENTICATION:{
# MYSQL_server = "127.0.0.1";
# MYSQL_user = "bupt"; # Database server login
# MYSQL_pass = "linux"; # Database server password
# MYSQL_db = "OAI_DB";
# OPERATOR_key = "1006020f0a478bf6b699f15c062e42b3"; # op
# RANDOM = "true";
# };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment