open5gs / open5gs

Open5GS is a C-language Open Source implementation for 5G Core and EPC, i.e. the core network of LTE/NR network (Release-17)
https://open5gs.org
GNU Affero General Public License v3.0
1.84k stars 761 forks source link

Adding PCC to the open5gs-dbctl #1837

Open modyngs opened 2 years ago

modyngs commented 2 years ago

Dear @acetcom Hi I was wondering how to add aditional PCC to the subscriber db using open5gs-dbctl!

I would like to make this configuration automatically image

I have manipulated the dbctl to be able to add pcc automatically, as soon as i add an IMSI to the dbctl

here is the change: image

I can see it in showall but wont affect on webUI! open5gs-dbctl showall + open5gs-dbctl showall MongoDB shell version v3.6.8 connecting to: mongodb://localhost/open5gs Implicit session: session { "id" : UUID("ecd7170e-4218-42e5-9e65-10da8d38b68a") } MongoDB server version: 3.6.8 { "_id" : ObjectId("6348087a7359392b2c4f6e5f"), "imsi" : "001010123456791", "__v" : 0, "access_restriction_data" : 32, "ambr" : { "uplink" : { "value" : 1, "unit" : 3 }, "downlink" : { "value" : 1, "unit" : 3 } }, "network_access_mode" : 0, "security" : { "k" : "8baf473f2f8fd09487cccbd7097c6862", "amf" : "8000", "op" : "11111111111111111111111111111111", "opc" : null }, "slice" : [ { "sst" : 1, "default_indicator" : true, "_id" : ObjectId("6348087a12b56127f5719b8a"), "session" : [ { "name" : "internet", "type" : 1, "_id" : ObjectId("6348087a12b56127f5719b8b"), "pcc_rule" : [ ], "ambr" : { "uplink" : { "value" : 1, "unit" : 3 }, "downlink" : { "value" : 1, "unit" : 3 } }, "qos" : { "index" : 9, "arp" : { "priority_level" : 8, "pre_emption_capability" : 1, "pre_emption_vulnerability" : 1 } } }, { "name" : "ims", "type" : 1, "_id" : ObjectId("6348087a12b56127f5719b8c"), "pcc_rule" : [ { "mbr" : { "uplink" : { "value" : 128, "unit" : 1 }, "downlink" : { "value" : 128, "unit" : 1 } }, "gbr" : { "uplink" : { "value" : 128, "unit" : 1 }, "downlink" : { "value" : 128, "unit" : 1 } }, "qos" : { "index" : 1, "arp" : { "priority_level" : 2, "pre_emption_capability" : 1, "pre_emption_vulnerability" : 1 } } } ], "ambr" : { "uplink" : { "value" : 1530, "unit" : 1 }, "downlink" : { "value" : 3850, "unit" : 1 } }, "qos" : { "index" : 5, "arp" : { "priority_level" : 1, "pre_emption_capability" : 1, "pre_emption_vulnerability" : 1 } } } ] } ], "subscribed_rau_tau_timer" : 12, "subscriber_status" : 0 }

But it Wont affect on WEBUI: image

Any help would be much appritiated! Thanks Best regards

ramrattle commented 2 years ago

The functionality will work, my guess is there is no process to go and update the gui, try restarting the GUI once, it will work

modyngs commented 2 years ago

@ramrattle I've installed WebUI even after i have changed these configurations in open5gs-dbctl! but it wont affect! Would you please try it? Thanks Best regards

modyngs commented 2 years ago

Can you share your dbctl which includes the mentioned paramets ( like gbr, qos, mbr, ... in PCC rules)?