chore: make deps

This commit is contained in:
2025-11-11 14:18:57 +01:00
parent db7c4042d0
commit 45af67d22d
590 changed files with 22837 additions and 16387 deletions

View File

@ -4,6 +4,7 @@ import (
"encoding/csv"
"errors"
"fmt"
"net/netip"
"regexp"
"strconv"
"strings"
@ -26,9 +27,9 @@ type NetworkAttachmentOpts struct {
Aliases []string
DriverOpts map[string]string
Links []string // TODO add support for links in the csv notation of `--network`
IPv4Address string
IPv6Address string
LinkLocalIPs []string
IPv4Address netip.Addr
IPv6Address netip.Addr
LinkLocalIPs []netip.Addr
MacAddress string
GwPriority int
}
@ -70,13 +71,23 @@ func (n *NetworkOpt) Set(value string) error { //nolint:gocyclo
case networkOptAlias:
netOpt.Aliases = append(netOpt.Aliases, val)
case networkOptIPv4Address:
netOpt.IPv4Address = val
netOpt.IPv4Address, err = netip.ParseAddr(val)
if err != nil {
return err
}
case networkOptIPv6Address:
netOpt.IPv6Address = val
netOpt.IPv6Address, err = netip.ParseAddr(val)
if err != nil {
return err
}
case networkOptMacAddress:
netOpt.MacAddress = val
case networkOptLinkLocalIP:
netOpt.LinkLocalIPs = append(netOpt.LinkLocalIPs, val)
a, err := netip.ParseAddr(val)
if err != nil {
return err
}
netOpt.LinkLocalIPs = append(netOpt.LinkLocalIPs, a)
case driverOpt:
key, val, err = parseDriverOpt(val)
if err != nil {