Skip to content

Commit

Permalink
Determine Netmask from IP CIDR
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Dec 9, 2024
1 parent 4dd3ceb commit d0e4337
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dataplane/baremetal.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func DeployBaremetalSet(
return fmt.Errorf("%s gateway is missing", dataplanev1.CtlPlaneNetwork)
}
baremetalSet.Spec.CtlplaneGateway = *res.Gateway
baremetalSet.Spec.CtlplaneNetmask = string(ipNet.Mask)
baremetalSet.Spec.BootstrapDNS = dnsAddresses
baremetalSet.Spec.DNSSearchDomains = []string{res.DNSDomain}
}
Expand Down

0 comments on commit d0e4337

Please sign in to comment.