Skip to content

Commit ea187b8

Browse files
ekarlsochrischdi
andauthored
Fix doc ref comment
Co-authored-by: Christian Schlotter <[email protected]>
1 parent 83aad83 commit ea187b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/services/govmomi/ipam/parse.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ func parseAddressWithPrefix(ipamAddress *ipamv1.IPAddress) (netip.Prefix, error)
5151
// does not conflict with the gateway addresses parsed from other
5252
// ipamv1.IPAddresses on the current device. Gateway addresses must be the same
5353
// family as the address on the ipamv1.IPAddress. Gateway addresses of one
54-
// family must match the other addresses of the same family. IPv4 Gateways are
55-
// required, but IPv6 gateways are not.
54+
// family must match the other addresses of the same family. A gateway address
55+
// is optional. If it is not set this function returns `nil, nil`.
5656
func parseGateway(ipamAddress *ipamv1.IPAddress, addressWithPrefix netip.Prefix, ipamDeviceConfig ipamDeviceConfig) (*netip.Addr, error) {
5757
if ipamAddress.Spec.Gateway == "" {
5858
return nil, nil

0 commit comments

Comments
 (0)