cli icon indicating copy to clipboard operation
cli copied to clipboard

Hardcoded IPv6 in "ha network vlan" help message

Open cuihaoleo opened this issue 6 months ago • 1 comments

Describe the problem

$ ha network vlan 
Error: accepts 2 arg(s), received 0
Usage:
  ha network vlan [interface] [id] [flags]

Examples:

  ha network vlan eth0 10 --ipv4-method auto --ipv6-method disabled


Flags:
  -h, --help                          help for vlan
      --ipv4-address stringArray      IPv4 address for the interface in the 192.168.1.5/24
      --ipv4-gateway string           The IPv4 gateway the interface should use
      --ipv4-method string            Method on IPv4: static|auto|disabled
      --ipv4-nameserver stringArray   IPv4 address of upstream DNS servers. Use multiple times for multiple servers.
      --ipv6-address stringArray      IPv6 address for the interface in the 2001:0db8:85a3:0000:0000:8a2e:0370:7334/64
      --ipv6-gateway string           The IPv6 gateway the interface should use
      --ipv6-method string            Method on IPv6: static|auto|disabled
      --ipv6-nameserver stringArray   IPv6 address for upstream DNS servers. Use multiple times for multiple servers.

Global Flags:
      --api-token string   Home Assistant Supervisor API token
      --config string      Optional config file (default is $HOME/.homeassistant.yaml)
      --endpoint string    Endpoint for Home Assistant Supervisor (default is 'supervisor')
      --log-level string   Log level (defaults to Warn)
      --no-progress        Disable the progress spinner
      --raw-json           Output raw JSON from the API

FATA[0000] Error while executing rootCmd: accepts 2 arg(s), received 0

I don't get why 2001:0db8:85a3:0000:0000:8a2e:0370:7334/64 is here. Seems like it shouldn't be hardcoded.

cuihaoleo avatar Jun 20 '25 04:06 cuihaoleo

I don't get why 2001:0db8:85a3:0000:0000:8a2e:0370:7334/64 is here. Seems like it shouldn't be hardcoded.

It is not hardcoded, this serves as an example. 2001:0db8 is the official IPv6 documentation prefix.

agners avatar Jun 20 '25 08:06 agners

I don't get why 2001:0db8:85a3:0000:0000:8a2e:0370:7334/64 is here. Seems like it shouldn't be hardcoded.

It is not hardcoded, this serves as an example. 2001:0db8 is the official IPv6 documentation prefix.

The language is confusing, why "in the" IP address/subnet, instead of "for example". Teach me if it's me not mastering the profound English language.

cuihaoleo avatar Jun 22 '25 17:06 cuihaoleo