Skip to content

Commit 35592de

Browse files
author
kazem
committed
feat: add 97 and 99 sims to generate-data.py
1 parent f7f7922 commit 35592de

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

add-cots-subscribers.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ print_success() {
88
}
99

1010
print_header "Adding subscribers"
11-
python3 mongo-tools/generate-data.py --num-cots-subscribers 2
11+
python3 mongo-tools/generate-data.py --num-cots-subscribers 4
1212
python3 mongo-tools/add-subscribers.py
13-
print_success "Subscribers added."
13+
print_success "Subscribers added."

mongo-tools/generate-data.py

+43-1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,48 @@
187187
"schema_version": 1,
188188
"__v": 0,
189189
},
190+
"sim_97": {
191+
"_id": "",
192+
"imsi": "001010000060597",
193+
"subscribed_rau_tau_timer": 12,
194+
"network_access_mode": 0,
195+
"subscriber_status": 0,
196+
"access_restriction_data": 32,
197+
"slice": [slice_data["slice_1"]],
198+
"ambr": {
199+
"uplink": {"value": 1, "unit": Open5GS.Unit.Gbps},
200+
"downlink": {"value": 1, "unit": Open5GS.Unit.Gbps},
201+
},
202+
"security": {
203+
"k": "E8CD15760B3C91F85E750E66EC6688EC",
204+
"amf": "8000",
205+
"op": None,
206+
"opc": "86BA674F840472143F0B06B070F42234",
207+
},
208+
"schema_version": 1,
209+
"__v": 0,
210+
},
211+
"sim_99": {
212+
"_id": "",
213+
"imsi": "001010000060599",
214+
"subscribed_rau_tau_timer": 12,
215+
"network_access_mode": 0,
216+
"subscriber_status": 0,
217+
"access_restriction_data": 32,
218+
"slice": [slice_data["slice_2"]],
219+
"ambr": {
220+
"uplink": {"value": 1, "unit": Open5GS.Unit.Gbps},
221+
"downlink": {"value": 1, "unit": Open5GS.Unit.Gbps},
222+
},
223+
"security": {
224+
"k": "2F6E0B8F5C329503497A816D813FCB5C",
225+
"amf": "8000",
226+
"op": None,
227+
"opc": "85DCACDF39894DAA5D8A6BD18A44EB7D",
228+
},
229+
"schema_version": 1,
230+
"__v": 0,
231+
},
190232
}
191233

192234
######################### HELPER FUNCTIONS #################################
@@ -359,4 +401,4 @@ def main():
359401
log.info("Slice and subscriber creation complete.")
360402

361403
if __name__ == "__main__":
362-
main()
404+
main()

0 commit comments

Comments
 (0)