summaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas
diff options
context:
space:
mode:
Diffstat (limited to 'mcp/salt-formulas')
-rw-r--r--mcp/salt-formulas/maas/pxe_nat.sls6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcp/salt-formulas/maas/pxe_nat.sls b/mcp/salt-formulas/maas/pxe_nat.sls
index 701bae07a..8a03c4fdb 100644
--- a/mcp/salt-formulas/maas/pxe_nat.sls
+++ b/mcp/salt-formulas/maas/pxe_nat.sls
@@ -15,7 +15,7 @@ iptables_pxe_nat:
- chain: POSTROUTING
- jump: MASQUERADE
- destination: 0/0
- - source: {{ salt['pillar.get']('_param:single_address') }}/24
+ - source: {{ salt['pillar.get']('_param:single_address') }}/{{ salt['pillar.get']('_param:opnfv_net_admin_mask') }}
- save: True
iptables_pxe_source:
@@ -24,7 +24,7 @@ iptables_pxe_source:
- chain: INPUT
- jump: ACCEPT
- destination: 0/0
- - source: {{ salt['pillar.get']('_param:single_address') }}/24
+ - source: {{ salt['pillar.get']('_param:single_address') }}/{{ salt['pillar.get']('_param:opnfv_net_admin_mask') }}
- save: True
iptables_pxe_destination:
@@ -32,6 +32,6 @@ iptables_pxe_destination:
- table: filter
- chain: INPUT
- jump: ACCEPT
- - destination: {{ salt['pillar.get']('_param:single_address') }}/24
+ - destination: {{ salt['pillar.get']('_param:single_address') }}/{{ salt['pillar.get']('_param:opnfv_net_admin_mask') }}
- source: 0/0
- save: True