Nmstate

A Declarative API for Host Network Management

View on GitHub

Set all linux bridges down

policy

capture:
  linux-bridges: interfaces.type=="linux-bridge"
  linux-bridges-down: capture.linux-bridges | interfaces.state:="down"
desired:
  interfaces: ""

current state

interfaces:
- name: eth0
  type: ethernet
- name: br1
  type: linux-bridge
  state: up
- name: br2
  type: linux-bridge
  state: up
- name: br3
  type: linux-bridge
  state: up

generated state

```yaml interfaces: