Skip to content

Commit b1400ee

Browse files
authored
Merge pull request #24 from mbilal92/master
Parameterize the default UPF values
2 parents 2838c49 + 7ea0ef1 commit b1400ee

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

roles/core/templates/radio-5g-values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ omec-user-plane:
219219
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
220220
iface: {{ core.data_iface }}
221221
gateway: 192.168.252.1
222-
ip: 192.168.252.3/24
222+
ip: {{ core.upf.default_upf.ip.access }}
223223
core:
224224
ipam: static
225225
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
226226
iface: {{ core.data_iface }}
227227
gateway: 192.168.250.1
228-
ip: 192.168.250.3/24
228+
ip: {{ core.upf.default_upf.ip.core }}
229229
cfgFiles:
230230
upf.jsonc:
231231
mode: af_packet # This mode implies no DPDK
@@ -239,7 +239,7 @@ omec-user-plane:
239239
hostname: "upf"
240240
#http_port: "8080"
241241
enable_ue_ip_alloc: false # If true, UPF allocates address from following pool
242-
ue_ip_pool: "172.250.0.0/16" # IP pool used UEs if enable_ue_ip_alloc=true
242+
ue_ip_pool: {{ core.upf.default_upf.ue_ip_pool }} # IP pool used UEs if enable_ue_ip_alloc=true
243243
slice_rate_limit_config: # Slice-level rate limiting (also controlled by ROC)
244244
# Uplink
245245
n6_bps: 10000000000 # 10Gbps

roles/core/templates/sdcore-5g-sriov-values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ omec-sub-provision:
247247
mtu: 1460 # Value is sent to UE when PDU Session Established
248248
ue-ip-pool: "172.250.1.0/16" # IP address pool for subscribers
249249
ue-dnn-qos:
250-
dnn-mbr-downlink: 1000 # UE level downlink QoS (Maximum bit rate per UE)
251-
dnn-mbr-uplink: 1000 # UE level uplink QoS (Maximum bit rate per UE)
250+
dnn-mbr-downlink: 1000 # UE level downlink QoS (Maximum bit rate per UE)
251+
dnn-mbr-uplink: 1000 # UE level uplink QoS (Maximum bit rate per UE)
252252
bitrate-unit: Mbps # Unit for above QoS rates
253253
traffic-class: # Default bearer QCI/ARP (not used in 5G)
254254
name: "platinum"
@@ -326,14 +326,14 @@ omec-user-plane:
326326
iface: {{ core.data_iface }}
327327
resourceName: "intel.com/intel_sriov_vfio_access"
328328
gateway: 192.168.252.1
329-
ip: 192.168.252.3/24
329+
ip: {{ core.upf.default_upf.ip.access }}
330330
core:
331331
ipam: static
332332
cniPlugin: vfioveth # Can be any other plugin. Dictates how IP address are assigned
333333
iface: {{ core.data_iface }}
334334
resourceName: "intel.com/intel_sriov_vfio_core"
335335
gateway: 192.168.250.1
336-
ip: 192.168.250.3/24
336+
ip: {{ core.upf.default_upf.ip.core }}
337337
cfgFiles:
338338
upf.jsonc:
339339
mode: dpdk
@@ -352,7 +352,7 @@ omec-user-plane:
352352
hostname: "upf"
353353
#http_port: "8080"
354354
enable_ue_ip_alloc: false # If true, UPF allocates address from following pool
355-
ue_ip_pool: "172.250.0.0/16" # IP pool used UEs if enable_ue_ip_alloc=true
355+
ue_ip_pool: {{ core.upf.default_upf.ue_ip_pool }} # IP pool used UEs if enable_ue_ip_alloc=true
356356
slice_rate_limit_config: # Slice-level rate limiting (also controlled by ROC)
357357
# Uplink
358358
n6_bps: 10000000000 # 10Gbps

roles/core/templates/sdcore-5g-values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,13 @@ omec-user-plane:
324324
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
325325
iface: {{ core.data_iface }}
326326
gateway: 192.168.252.1
327-
ip: 192.168.252.3/24
327+
ip: {{ core.upf.default_upf.ip.access }}
328328
core:
329329
ipam: static
330330
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
331331
iface: {{ core.data_iface }}
332332
gateway: 192.168.250.1
333-
ip: 192.168.250.3/24
333+
ip: {{ core.upf.default_upf.ip.core }}
334334
cfgFiles:
335335
upf.jsonc:
336336
mode: af_packet # This mode implies no DPDK
@@ -344,7 +344,7 @@ omec-user-plane:
344344
hostname: "upf"
345345
#http_port: "8080"
346346
enable_ue_ip_alloc: false # If true, UPF allocates address from following pool
347-
ue_ip_pool: "172.250.0.0/16" # IP pool used UEs if enable_ue_ip_alloc=true
347+
ue_ip_pool: {{ core.upf.default_upf.ue_ip_pool }} # IP pool used UEs if enable_ue_ip_alloc=true
348348
slice_rate_limit_config: # Slice-level rate limiting (also controlled by ROC)
349349
# Uplink
350350
n6_bps: 10000000000 # 10Gbps

0 commit comments

Comments
 (0)