Skip to content

Commit

Permalink
remove mongodb (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciareinoso authored May 28, 2024
1 parent 19ae7c2 commit a5e9a3f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 39 deletions.
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

0 comments on commit a5e9a3f

Please sign in to comment.