Skip to content

Commit 188d4a5

Browse files
committed
fix all value files
Signed-off-by: Larry Peterson <[email protected]>
1 parent dc42f62 commit 188d4a5

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

roles/core/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
when: inventory_hostname in groups['master_nodes']
2929

3030
- debug:
31-
var: hostvars[inventory_hostname]
31+
var: ran_subnet
3232
when: inventory_hostname in groups['master_nodes']
3333

3434
- name: remove /tmp/sdcore-5g-values.yaml

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ omec-user-plane:
218218
ipam: static
219219
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
220220
iface: {{ core.data_iface }}
221-
gateway: {{ core.upf.access_subnet[:-3] }}
222-
ip: {{ core.upf.access_subnet }}
221+
gateway: {{ access_gw }}
222+
ip: {{ access_ip }}
223223
core:
224224
ipam: static
225225
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
226226
iface: {{ core.data_iface }}
227-
gateway: {{ core.upf.core_subnet[:-3] }}
228-
ip: {{ core.upf.core_subnet }}
227+
gateway: {{ core_gw }}
228+
ip: {{ core_ip }}
229229
cfgFiles:
230230
upf.jsonc:
231231
mode: af_packet # This mode implies no DPDK

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,15 @@ omec-user-plane:
325325
cniPlugin: vfioveth # Can be any other plugin. Dictates how IP address are assigned
326326
iface: {{ core.data_iface }}
327327
resourceName: "intel.com/intel_sriov_vfio_access"
328-
gateway: {{ core.upf.access_subnet[:-3] }}
329-
ip: {{ core.upf.access_subnet }}
328+
gateway: {{ access_gw }}
329+
ip: {{ access_ip }}
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"
335-
gateway: {{ core.upf.core_subnet[:-3] }}
336-
ip: {{ core.upf.core_subnet }}
335+
gateway: {{ core_gw }}
336+
ip: {{ core_ip }}
337337
cfgFiles:
338338
upf.jsonc:
339339
mode: dpdk

roles/upf/tasks/install.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
dest: /tmp/upf-{{ item.key }}.yaml
2424
vars:
2525
ran_subnet: "{{ran_subnet}}"
26-
upf_access_ip: "{{ item.value.ip.access }}"
27-
upf_core_ip: "{{ item.value.ip.core }}"
26+
access_gw: "{{ core.upf.access_subnet[:-3] }}"
27+
core_gw: "{{ core.upf.core_subnet[:-3] }}"
28+
upf_access_ip: "{{ item.value.ip.access + '/24' }}"
29+
upf_core_ip: "{{ item.vaule.ip.core + '/24' }}"
2830
upf_ue_ip_pool: "{{ item.value.ue_ip_pool }}"
2931
with_dict: "{{ core.upf.additional_upfs}}"
3032
when: inventory_hostname in groups['master_nodes']

roles/upf/templates/upf-5g-values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ config:
3131
ipam: static
3232
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
3333
iface: {{ core.data_iface }}
34-
gateway: {{ core.upf.access_subnet[:-3] }}
34+
gateway: {{ access_gw }}
3535
ip: {{ upf_access_ip }}
3636
core:
3737
ipam: static
3838
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
3939
iface: {{ core.data_iface }}
40-
gateway: {{ core.upf.core_subnet[:-3] }}
40+
gateway: {{ core_gw }}
4141
ip: {{ upf_core_ip }}
4242
cfgFiles:
4343
upf.jsonc:

0 commit comments

Comments
 (0)