remove RJ

This commit is contained in:
2023-09-12 15:55:07 +08:00
parent fc8f63fca6
commit a8aed0d96e
6 changed files with 35 additions and 33 deletions

View File

@@ -8,12 +8,12 @@ logger:
count: 90
omc:
name: BJ_OMC01
name: OMC01
hosturi: http://127.0.0.1:3030
hostno: R001
province: BJ
hostno: A001
province: GD
netabbr: HX
vendor: RJ
vendor: -
tasks:
file: /usr/local/omc/etc/tasks.yaml

View File

@@ -69,10 +69,10 @@ omc:
uriPrefix: /api/rest/oam
neType: OMC
neId: 001
rmUID: 1100RJHX1OMC001
rmUID: 4400HX101
neName: OMC
province: BJ
vendor: RJ
province: GD
vendor: -
dn: 4600
chk2ne: false
sn: 13750650

View File

@@ -8,12 +8,12 @@ logger:
count: 10
omc:
name: BJ_OMC01
name: OMC01
hosturi: http://127.0.0.1:3040
hostno: R001
province: BJ
province: GD
netabbr: HX
vendor: RJ
vendor:
tasks:
file: ./etc/tasks.yaml

View File

@@ -30,17 +30,19 @@ type SmfUENum struct {
// SmfUEInfo SMF在线用户信息
type SmfUEInfo struct {
IMSI string `json:"imsi"`
MSISDN string `json:"msisdn"`
IPv4 []string `json:"ipv4"`
Dnn []string `json:"dnn"`
Tai []string `json:"tai"`
PduSessionID []int `json:"pduSessionID"`
IPv6 []string `json:"ipv6"`
SstSD []string `json:"sstSD"`
UpfN3IP []string `json:"upfN3IP"`
RanN3IP []string `json:"ranN3IP"`
Activetime []string `json:"activeTime"`
IMSI string `json:"imsi"`
MSISDN string `json:"msisdn"`
PduSessionInfo []struct {
PduSessionID int `json:"pduSessionID"`
IPv4 string `json:"ipv4"`
IPv6 string `json:"ipv6"`
Dnn string `json:"dnn"`
Tai string `json:"tai"`
SstSD string `json:"sstSD"`
UpfN3IP string `json:"upfN3IP"`
RanN3IP string `json:"ranN3IP"`
Activetime string `json:"activeTime"`
} `json:"pduSessionInfo"`
}
// ImsUEInfo IMS在线用户信息
@@ -120,7 +122,7 @@ func GetUEInfoFromNF(w http.ResponseWriter, r *http.Request) {
log.Trace("neInfo:", neInfo)
hostUri := fmt.Sprintf("http://%s:%v", neInfo.Ip, neInfo.Port)
requestURI2NF := fmt.Sprintf("%s/%s", hostUri, r.RequestURI)
requestURI2NF := fmt.Sprintf("%s%s", hostUri, r.RequestURI)
log.Debug("requestURI2NF:", requestURI2NF)
@@ -137,7 +139,7 @@ func GetUEInfoFromNF(w http.ResponseWriter, r *http.Request) {
} else {
var response services.DataResponse
_ = json.Unmarshal(resp.Body(), &response)
services.ResponseWithJson(w, http.StatusOK, response)
services.ResponseWithJson(w, resp.StatusCode(), response)
return
}
}
@@ -183,7 +185,7 @@ func GetUENumFromNF(w http.ResponseWriter, r *http.Request) {
log.Trace("neInfo:", neInfo)
hostUri := fmt.Sprintf("http://%s:%v", neInfo.Ip, neInfo.Port)
requestURI2NF := fmt.Sprintf("%s/%s", hostUri, r.RequestURI)
requestURI2NF := fmt.Sprintf("%s%s", hostUri, r.RequestURI)
log.Debug("requestURI2NF:", requestURI2NF)
@@ -200,7 +202,7 @@ func GetUENumFromNF(w http.ResponseWriter, r *http.Request) {
} else {
var response services.DataResponse
_ = json.Unmarshal(resp.Body(), &response)
services.ResponseWithJson(w, http.StatusOK, response)
services.ResponseWithJson(w, resp.StatusCode(), response)
return
}
}
@@ -246,7 +248,7 @@ func GetNBInfoFromNF(w http.ResponseWriter, r *http.Request) {
log.Trace("neInfo:", neInfo)
hostUri := fmt.Sprintf("http://%s:%v", neInfo.Ip, neInfo.Port)
requestURI2NF := fmt.Sprintf("%s/%s", hostUri, r.RequestURI)
requestURI2NF := fmt.Sprintf("%s%s", hostUri, r.RequestURI)
log.Debug("requestURI2NF:", requestURI2NF)
@@ -263,7 +265,7 @@ func GetNBInfoFromNF(w http.ResponseWriter, r *http.Request) {
} else {
var response services.DataResponse
_ = json.Unmarshal(resp.Body(), &response)
services.ResponseWithJson(w, http.StatusOK, response)
services.ResponseWithJson(w, resp.StatusCode(), response)
return
}
}

View File

@@ -53,10 +53,10 @@ omc:
uriPrefix: /api/rest
neType: OMC
neId: 001
rmUID: 1100RJHX1OMC001
rmUID: 4400HX101
neName: OMC
province: BJ
vendor: RJ
province: GD
vendor: -
dn: 4600
chk2ne: false
sn: 13750650

View File

@@ -69,10 +69,10 @@ omc:
uriPrefix: /api/rest
neType: OMC
neId: 001
rmUID: 1100RJHX1OMC001
rmUID: 4400HX101
neName: OMC
province: BJ
vendor: RJ
province: GD
vendor: -
dn: 4600
chk2ne: false
sn: 13750650