MY Diff:
root@free5gc:~/free5gc# git diff
diff --git a/config/amfcfg.conf b/config/amfcfg.conf
index fb591d3…31a5d5d 100644
— a/config/amfcfg.conf
+++ b/config/amfcfg.conf
@@ -5,10 +5,10 @@ info:
configuration:
amfName: AMF
ngapIpList:
-
- 127.0.0.5
sbi:
scheme: http
- registerIPv4: 127.0.0.1 # IP used to register to NRF
- registerIPv4: 127.0.0.5 # IP used to register to NRF
bindingIPv4: 127.0.0.1 # IP used to bind the service
port: 29518
serviceNameList:
diff --git a/config/ausfcfg.conf b/config/ausfcfg.conf
index 84011be…1b85a2c 100644
— a/config/ausfcfg.conf
+++ b/config/ausfcfg.conf
@@ -5,7 +5,7 @@ info:
configuration:
sbi:
scheme: http
- registerIPv4: 127.0.0.1 # IP used to register to NRF
- registerIPv4: 127.0.0.6 # IP used to register to NRF
bindingIPv4: 127.0.0.1 # IP used to bind the service
port: 29509
serviceNameList:
diff --git a/config/pcfcfg.conf b/config/pcfcfg.conf
index 7408d1b…a885298 100644
— a/config/pcfcfg.conf
+++ b/config/pcfcfg.conf
@@ -6,7 +6,7 @@ configuration:
pcfName: PCF
sbi:
scheme: http
- registerIPv4: 127.0.0.1 # IP used to register to NRF
- registerIPv4: 127.0.0.12 # IP used to register to NRF
bindingIPv4: 127.0.0.1 # IP used to bind the service
port: 29507
timeFormat: 2019-01-02 15:04:05
diff --git a/config/smfcfg.conf b/config/smfcfg.conf
index ec4ef30…2243028 100644
— a/config/smfcfg.conf
+++ b/config/smfcfg.conf
@@ -6,7 +6,7 @@ configuration:
smfName: SMF
sbi:
scheme: http
- registerIPv4: 127.0.0.1 # IP used to register to NRF
-
registerIPv4: 127.0.0.7 # IP used to register to NRF
bindingIPv4: 127.0.0.1 # IP used to bind the service
port: 29502
tls:
diff --git a/src/test/ngsetup_test.go b/src/test/ngsetup_test.go
index 5c4b963…996f651 100644
— a/src/test/ngsetup_test.go
+++ b/src/test/ngsetup_test.go
@@ -78,7 +78,7 @@ func TestNGSetup(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// send NGSetupRequest Msg
diff --git a/src/test/registration_test.go b/src/test/registration_test.go
index 789705e…a505401 100644
— a/src/test/registration_test.go
+++ b/src/test/registration_test.go
@@ -43,7 +43,7 @@ func TestRegistration(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// RAN connect to UPF
@@ -277,7 +277,7 @@ func TestDeregistration(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// send NGSetupRequest Msg
@@ -469,7 +469,7 @@ func TestServiceRequest(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// send NGSetupRequest Msg
@@ -685,7 +685,7 @@ func TestGUTIRegistration(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
require.Nil(t, err)
// send NGSetupRequest Msg
@@ -985,7 +985,7 @@ func TestPDUSessionReleaseRequest(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// send NGSetupRequest Msg
@@ -1186,7 +1186,7 @@ func TestXnHandover(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// send NGSetupRequest Msg
@@ -1203,7 +1203,7 @@ func TestXnHandover(t *testing.T) {
time.Sleep(10 * time.Millisecond)
-
conn2, err1 := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9488)
-
conn2, err1 := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9488)
assert.Nil(t, err1)
// send Second NGSetupRequest Msg
@@ -1389,7 +1389,7 @@ func TestPaging(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMFcd
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// send NGSetupRequest Msg
@@ -1627,7 +1627,7 @@ func TestN2Handover(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN1 connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// RAN1 connect to UPF
@@ -1649,7 +1649,7 @@ func TestN2Handover(t *testing.T) {
time.Sleep(10 * time.Millisecond)
// RAN2 connect to AMF
-
conn2, err1 := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9488)
-
conn2, err1 := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9488)
assert.Nil(t, err1)
// RAN2 connect to UPF
@@ -1971,7 +1971,7 @@ func TestDuplicateRegistration(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// RAN connect to UPF
@@ -2216,7 +2216,7 @@ func TestReSynchronisation(t *testing.T) {
var recvMsg = make([]byte, 2048)
// RAN connect to AMF
-
conn, err := test.ConntectToAmf("127.0.0.1", "127.0.0.1", 38412, 9487)
-
conn, err := test.ConntectToAmf("127.0.0.5", "127.0.0.1", 38412, 9487)
assert.Nil(t, err)
// RAN connect to UPF
(END)
LOG:
I have pasted only the error logs
root@free5gc:~/free5gc# ./run.sh
2020-12-10T12:20:59Z [INFO][UPF][Util] Config: /root/free5gc/src/upf/build/config/upfcfg.yaml
2020-12-10T12:20:59Z [INFO][UPF][Util] Set log level: info
2020-12-10T12:20:59Z [ERRO][UPF][Util] gtp5g device named upfgtp created fail
2020-12-10T12:20:59Z [ERRO][UPF][Util] Gtp5gDeviceInit failed
2020-12-10T12:20:59Z [ERRO][UPF][Util] Epoll Wait Error : Invalid argument
2020-12-10T12:20:59Z [ERRO][UPF][Util] Epoll Wait error : Invalid argument
2020-12-10T12:21:00Z [FATA][NRF][Init] HTTP server setup failed: listen tcp 127.0.0.1:29510: bind: address already in use
2020-12-10T12:21:00Z [INFO][CommonTest][Comm] set report call : false
2020-12-10T12:21:00Z [INFO][AUSF][Init] Successfully initialize configuration config/ausfcfg.conf
2020-12-10T12:21:00Z [INFO][AUSF][Init] Log level is set to [info] level
2020-12-10T12:21:00Z [INFO][AUSF][Init] Server started
2020-12-10T12:21:00Z [INFO][AUSF][Init] ausfconfig Info: Version[1.0.0] Description[AUSF initial local configuration]
ausf context = &{{{0 0} {} map[] 0} {{0 0} {} map[] 0} 7fdf4266-b7f0-40e5-b716-233f4637e99a ausfGroup001 29509 127.0.0.6 127.0.0.1 http://127.0.0.6:29509 http http://localhost:29510 map[nausf-auth:{7fdf4266-b7f0-40e5-b716-233f4637e99a nausf-auth 0xc0003a0a20 http REGISTERED 0xc0003a0a00 [] [] [] 0 0 0 }] [{208 93} {123 45}] 0xc000392960}