don't use net.IPMask
net.IPMask doesn't have any advantages, as it would marshalled to mask: - 1 - 2 - 3 - 4 Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
9fdb9ca792
commit
c08cd82e68
@@ -52,9 +52,9 @@ mtu={{ $netdev.MTU }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ if and ($netdev.Ipaddr) (ne $netdev.Type "bond-slave") -}}
|
||||
{{ if and ($netdev.IpCIDR) (ne $netdev.Type "bond-slave") -}}
|
||||
[ipv4]
|
||||
address={{ $netdev.Ipaddr }}
|
||||
address={{ $netdev.IpCIDR }}
|
||||
{{ if $netdev.Gateway -}}
|
||||
gateway={{ $netdev.Gateway }}
|
||||
{{ end -}}
|
||||
|
||||
@@ -24,7 +24,7 @@ This file is autogenerated by warewulf
|
||||
</ipv4>
|
||||
<ipv4:static>
|
||||
<address>
|
||||
<local>{{$netdev.Ipaddr}}/{{$netdev.Ipmask}}</local>
|
||||
<local>{{$netdev.IpCIDR}}</local>
|
||||
</address>
|
||||
{{ if $netdev.Gateway.Get -}}
|
||||
<route>
|
||||
|
||||
Reference in New Issue
Block a user