Skip to content

Commit 1f00479

Browse files
committed
debug variables
Signed-off-by: Larry Peterson <[email protected]>
1 parent 32af7bb commit 1f00479

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

roles/core/tasks/install.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,18 @@
2121
# TODO: check if interface subnet is valid
2222
- set_fact:
2323
ran_subnet: "{{ result.stdout if (core.ran_subnet == '') else core.ran_subnet }}"
24+
access_gw: "{{ core.upf.access_subnet[:-3] }}
25+
access_ip: "{{ core.upf.default_upf.ip.access + '/24' }}
26+
core_gw: "{{ core.upf.core_subnet[:-3] }}
27+
core_ip: "{{ core.upf.default_upf.ip.core + '/24' }}
2428
when: inventory_hostname in groups['master_nodes']
2529

2630
- debug:
2731
var: "ran_subnet"
32+
var: "core_gw"
33+
var: "access_gw"
34+
var: "core_ip"
35+
var: "access_ip"
2836
when: inventory_hostname in groups['master_nodes']
2937

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,14 @@ omec-user-plane:
323323
ipam: static
324324
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
325325
iface: {{ core.data_iface }}
326-
gateway: {{ core.upf.access_subnet[:-3] }}
327-
ip: {{ core.upf.default_upf.ip.access + '/24' }}
326+
gateway: {{ access_gw }}
327+
ip: {{ access_ip }}
328328
core:
329329
ipam: static
330330
cniPlugin: macvlan # Can be any other plugin. Dictates how IP address are assigned
331331
iface: {{ core.data_iface }}
332-
gateway: {{ core.upf.core_subnet[:-3] }}
333-
ip: {{ core.upf.default_upf.ip.core + '/24' }}
332+
gateway: {{ core_gw }}
333+
ip: {{ core_ip }}
334334
cfgFiles:
335335
upf.jsonc:
336336
mode: af_packet # This mode implies no DPDK

0 commit comments

Comments
 (0)