home-assistant/cli

Can't disable network interface

alexiri opened this issue · 1 comments

Describe the problem

It's not possible to disable a network interface. There's a ha network update --enabled, but there's no equivalent --disabled.

Debug information

  1. SSH Addon type
  • Community
  • Core
  • Custom
  1. Version of the CLI

CLI Version: 2021.12.0
Add-on:
Add-on version:

  1. Version of Home Assistant Core & the Home Assistant Supervisor

Home Assistant Core: 2022.2.9
Home Assistant Supervisor: 2022.01.1

  1. Output from executing the command with debug info

e.g., ha hardware info should be run as ha --log-level debug hardware info

Expected behavior

I would like to be able to disable a network interface via ha network update --disabled wlan0.

Additional context

The closest I've managed to get was ha network update wlan0 --ipv4-method disabled --ipv6-method disabled, so the interface doesn't get an IP, but it is still online.

Damn, I just spend one hour pulling my hair out because of this as well 😆 I'm using the exact same versions:

  • CLI Version: 2021.12.0
  • Home Assistant Core: 2022.2.9
  • Home Assistant Supervisor: 2022.01.1

I tried everything I could think of, but no success. It guess it should be ha network update wlan0 --enabled false since the default is true.