Skip to content

Commit

Permalink
log and format optimization
Browse files Browse the repository at this point in the history
Signed-off-by: zcq98 <[email protected]>
  • Loading branch information
zhaocongqi committed Dec 19, 2024
1 parent 03d8dff commit ed79e95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ func (c *Controller) gcAddressSet() error {
}

if err = c.OVNNbClient.DeleteAddressSet(asList...); err != nil {
klog.Errorf("failed to delete address set %v,%v", asList, err)
klog.Errorf("failed to delete address set %v: %v", asList, err)
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/util/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ func ValidateNetworkBroadcast(cidr, ip string) error {
}
_, network, _ := net.ParseCIDR(cidrBlock)
if AddressCount(network) == 1 {
return fmt.Errorf("subnet %s is configured with /32 netmask", cidrBlock)
return fmt.Errorf("subnet %s is configured with /32 or /128 netmask", cidrBlock)
}

ipStr := IPToString(ipAddr)
Expand Down

0 comments on commit ed79e95

Please sign in to comment.