Dear 5GC team,
My UPF is running on a separate ubuntu 1804 (desktop server), with IP 192.168.5.53; and all other core NFs (except n3iwf, there is no n3iwf running) are running on another ubuntu 1804 (desktop server), with IP 192.168.2.52).
My UPF is running, and my 5GC Core NFs are running fine.
On the 5GC core server, I open another terminal, and run ‘test.sh TestRegistration’, and I get below error:
Would you pls help? thanks a lot!
~/free5gc$ ./test.sh TestRegistration
[sudo] password for andrew: 
# free5gc/src/test_test [free5gc/src/test.test]
./registration_test.go:107:18: undefined: connectToUpf
./registration_test.go:1269:19: undefined: connectToUpf
./registration_test.go:1332:18: undefined: connectToUpf
./registration_test.go:1354:19: undefined: connectToUpf
./registration_test.go:1670:18: undefined: connectToUpf
FAIL	free5gc/src/test [build failed]
in registration_test.go, in the above 5 lines (calling function ‘connectToUpf’), I changed UpfIP from ‘10.200.200.102’ (default) to ‘192.168.5.53’, and run the ‘test.sh TestRegistration’ again, and I still get above same error.
And my smfcfg.conf and upfcfg.yaml settings (IPs) are all default value (IPs):
~/free5gc/src/upf/build/config/upfcfg.yaml:
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
    
  apn_list:
    - apn: internet
      cidr: 60.60.0.0/24  
~/free5gc/config/smfcfg.conf :
pfcp:
    addr: 127.0.0.1
  userplane_information:
    up_nodes:
      gNB1:
        type: AN
        an_ip: 192.188.2.3
      UPF:
        type: UPF
        node_id: 127.0.0.8
        up_resource_ip: 192.188.2.2
    links:
      - A: gNB1
        B: UPF
  ue_subnet: 60.60.0.0/16
  nrfUri: http://localhost:29510
UPF machine log:
sudo -E ./bin/free5gc-upfd 
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/src/upf_init.c:164 UpfInit() Config: /home/andrew/free5gc/src/upf/build/config/upfcfg.yaml  UPF=Util
INFO[2020-09-06T23:29:03-07:00] Set log level: info                           UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/src/up/up_path.c:40 UpRouteInit() APN routes added, main routing table:  UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/lib/knet/src/route.c:202 KnetPrintRoutes() DstIp               Gateway        Iface     Priority RtProto   Type         UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/lib/knet/src/route.c:237 KnetPrintRoutes() 0.0.0.0 /0          192.168.5.1    eno1      100      dhcp      unicast      UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/lib/knet/src/route.c:237 KnetPrintRoutes() 10.100.200.0 /24    0.0.0.0        br-dd2450d7d8c10        kernel    unicast      UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/lib/knet/src/route.c:237 KnetPrintRoutes() 60.60.0.0 /24       0.0.0.0        upfgtp0   0        static    unicast      UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/lib/knet/src/route.c:237 KnetPrintRoutes() 169.254.0.0 /16     0.0.0.0        eno1      1000     boot      unicast      UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/lib/knet/src/route.c:237 KnetPrintRoutes() 172.17.0.0 /16      0.0.0.0        docker0   0        kernel    unicast      UPF=Util
INFO[2020-09-06T23:29:03-07:00] /home/andrew/free5gc/src/upf/lib/knet/src/route.c:237 KnetPrintRoutes() 192.168.5.0 /24     0.0.0.0        eno1      100      kernel    unicast      UPF=Util
 
      
    