Skip to content

Commit

Permalink
Add upfcfg.yaml to config and specify upf log output file in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
free5gc-org committed Jan 25, 2022
1 parent bef19d5 commit fa56062
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
34 changes: 34 additions & 0 deletions config/upfcfg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
info:
version: 1.0.0
description: UPF configuration

configuration:
# the kind of log output
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
debugLevel: info
ReportCaller: false

# packetBufferHoldTime should be longer than Paging retry-out time of AMF.
# unit: seconds
packetBufferHoldTime: 30

# The IP list of the N4 interface on this UPF (Can't set to 0.0.0.0)
pfcp:
- addr: 127.0.0.8

# The IP list of the N3/N9 interfaces on this UPF
# If there are multiple connection, set addr to 0.0.0.0 or list all the addresses
gtpu:
- addr: 127.0.0.8
# [optional] gtpu.name
# - name: upf.5gc.nctu.me
# [optional] gtpu.ifname
# - ifname: gtpif

# The DNN list supported by UPF
dnn_list:
- dnn: internet # Data Network Name
cidr: 60.60.0.0/24 # Classless Inter-Domain Routing for assigned IPv4 pool of UE
# [optional] dnn_list[*].natifname
# natifname: eth0
5 changes: 1 addition & 4 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@

PID_LIST=()

cd NFs/upf/build
sudo -E ./bin/free5gc-upfd &
sudo -E ./NFs/upf/build/bin/free5gc-upfd -c ./config/upfcfg.yaml -l ./log/nf/upf.log -g ./log/free5gc.log &
PID_LIST+=($!)

sleep 1

cd ../../..

NF_LIST="nrf amf smf udr pcf udm nssf ausf"

export GIN_MODE=release
Expand Down

0 comments on commit fa56062

Please sign in to comment.