Dear free5gc support,
Run UPF library test
(In directory: $GOPATH/src/free5gc/src/upf/build
sudo ./bin/testgtpv1
it fails:
[Sudo Testing] testGtpv1 1
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/src/gtp_link.c:32 GtpLinkCreate() GTP device named GtPvLtEsT Create fail UPF=Util
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/test.c:21 testGtpv1_1() GtpLinkCreate ifdev[GtPvLtEsT] fail UPF=Util
[Sudo Testing] testGtpv1 2
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/src/gtp_link.c:32 GtpLinkCreate() GTP device named gTpDeV1CeTeSt Create fail UPF=Util
ERRO[2020-08-17T06:15:53Z] c/upf/lib/gtpv1/test.c:50 testGtpv1_2() GtpLinkCreate ifdev[gTpDeV1CeTeSt] fail UPF=Util
I find that file ‘upfcfg.yaml’ is as below:
info:
version: 1.0.0
description: UPF configuration
configuration:
debugLevel: panic|fatal|error|warn|info|debug|trace
debugLevel: info
pfcp:
- addr: 127.0.0.8
gtpu:
- addr: 127.0.0.8
# [optional] gtpu.name
# - name: upf.5gc.nctu.me
# [optional] gtpu.ifname
# - ifname: gtpif
apn_list:
- apn: internet
cidr: 60.60.0.0/24
# [optional] apn_list[*].natifname
# natifname: eth0
and file ‘upfcfg.test.yaml’ is as below:
info:
version: 1.0.0
description: UPF configuration
configuration:
debugLevel: panic|fatal|error|warn|info|debug|trace
debugLevel: info
pfcp:
- addr: 10.200.200.101
gtpu:
- addr: 10.200.200.102
# [optional] gtpu.name
# - name: upf.5gc.nctu.me
# [optional] gtpu.ifname
# - ifname: gtpif
apn_list:
- apn: internet
cidr: 60.60.0.0/24
# [optional] apn_list[*].natifname
# natifname: eth0
~
thanks.