-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: add back static IP setting UI #85
Conversation
@yccodr Please review this PR~ Thanks! 😀 |
Hi @andy89923 Did you test the functionality with 5GC? |
Yes, it could assign the IP setting in the webconsole. However, I am working on a better coding style in frontend. So mark it as draft for now. |
"ueId": bson.D{{Key: "$ne", Value: checkData.Supi}}, // not this UE | ||
} | ||
smDataDataInterface, mongo_err := mongoapi.RestfulAPIGetMany(smDataColl, filter) | ||
if mongo_err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if mongo_err != nil && mongo_err != mongo.ErrNoDocuments {
The IP verifier responds the status 500 once the verification failed (mongo nil document). |
68f99e0
to
604fa84
Compare
604fa84
to
ccbf197
Compare
I think the mongoapi would handle the job. Here is part of code in mongoapi: func RestfulAPIGetMany(
collName string, filter bson.M, argOpt ...interface{},
) ([]map[string]interface{}, error) {
collection := Client.Database(dbName).Collection(collName)
var cur *mongo.Cursor
var err error
collation := getCollation(argOpt...)
if collation != nil {
opts := new(options.FindOptions)
opts.SetCollation(collation)
cur, err = collection.Find(ctx, filter, opts)
} else {
cur, err = collection.Find(ctx, filter)
}
...
} |
Description
Note