File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 21
21
# TODO: check if interface subnet is valid
22
22
- set_fact :
23
23
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' }}
24
28
when : inventory_hostname in groups['master_nodes']
25
29
26
30
- debug :
27
31
var : " ran_subnet"
32
+ var : " core_gw"
33
+ var : " access_gw"
34
+ var : " core_ip"
35
+ var : " access_ip"
28
36
when : inventory_hostname in groups['master_nodes']
29
37
30
38
- name : remove /tmp/sdcore-5g-values.yaml
Original file line number Diff line number Diff line change @@ -323,14 +323,14 @@ omec-user-plane:
323
323
ipam : static
324
324
cniPlugin : macvlan # Can be any other plugin. Dictates how IP address are assigned
325
325
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 }}
328
328
core :
329
329
ipam : static
330
330
cniPlugin : macvlan # Can be any other plugin. Dictates how IP address are assigned
331
331
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 }}
334
334
cfgFiles :
335
335
upf.jsonc :
336
336
mode : af_packet # This mode implies no DPDK
You can’t perform that action at this time.
0 commit comments