Skip to content
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

chore: remove mongodb #116

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions factory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ type Configuration struct {
NrfUri string `yaml:"nrfUri,omitempty"`
WebuiUri string `yaml:"webuiUri"`
ServiceList []Service `yaml:"serviceList,omitempty"`
Mongodb *Mongodb `yaml:"mongodb"`

// config received from RoC
DnnList map[string][]string // sst+sd os key
Expand All @@ -66,11 +65,6 @@ type Sbi struct {
Port int `yaml:"port,omitempty"`
}

type Mongodb struct {
Name string `yaml:"name"`
Url string `yaml:"url"`
}

type PlmnSupportItem struct {
PlmnId models.PlmnId `yaml:"plmnId"`
}
Expand Down
3 changes: 0 additions & 3 deletions factory/pcfcfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

configuration:
defaultBdtRefId: BdtPolicyId-
mongodb:
name: free5gc
url: http://1.1.1.1
nrfUri: https://nrf:443
pcfName: PCF
info:
Expand Down
3 changes: 0 additions & 3 deletions factory/pcfcfg_with_custom_webui_url.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

configuration:
defaultBdtRefId: BdtPolicyId-
mongodb:
name: free5gc
url: http://1.1.1.1
nrfUri: https://nrf:443
webuiUri: myspecialwebui:9872 # a valid URI of Webui
pcfName: PCF
Expand Down
27 changes: 0 additions & 27 deletions producer/smpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,33 +237,6 @@ func createSMPolicyProcedure(request models.SmPolicyContextData) (
decision.Offline = request.Offline
}

// get flow rules from databases
/* filter := bson.M{"ueId": ue.Supi, "snssai": util.SnssaiModelsToHex(*request.SliceInfo), "dnn": request.Dnn}
flowRulesInterface := MongoDBLibrary.RestfulAPIGetMany(flowRuleDataColl, filter)

for _, flowRule := range flowRulesInterface {
pccRule := util.CreatePccRule(smPolicyData.PccRuleIdGenarator, 33, []models.FlowInformation{
{
FlowDescription: flowRule["filter"].(string),
FlowDirection: models.FlowDirectionRm_BIDIRECTIONAL,
},
}, "")

qosData := &models.QosData{
QosId: util.GetQosId(smPolicyData.PccRuleIdGenarator),
GbrUl: flowRule["gbrUL"].(string),
GbrDl: flowRule["gbrDL"].(string),
MaxbrUl: flowRule["mbrUL"].(string),
MaxbrDl: flowRule["mbrDL"].(string),
Qnc: false,
Var5qi: int32(flowRule["5qi"].(float64)),
}
util.SetPccRuleRelatedData(&decision, pccRule, nil, qosData, nil, nil)

smPolicyData.PccRuleIdGenarator++
}
*/

requestSuppFeat, err := openapi.NewSupportedFeature(request.SuppFeat)
if err != nil {
logger.SMpolicylog.Errorf("openapi NewSupportedFeature error: %+v", err)
Expand Down