]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network: introduce 'degraded-carrier' operstate to order all states
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 5 Mar 2019 05:41:56 +0000 (14:41 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Mar 2019 05:29:00 +0000 (14:29 +0900)
commitc9cc03834369abfb91fba76fbb26a2e97d3fa9ad
tree0ff2cc60dfd46c76a8dd486f904d38d9b6ac405c
parent2cd6b9326c3555c4af6645beaa05ab482aff2e21
network: introduce 'degraded-carrier' operstate to order all states

Previously, 'degraded' state is ambiguous for bonding or bridge master:
1. one or more slave interfaces does not have carrier,
2. no link local address is assigned to the master,
3. combination of the above two.

This makes the above case 1 and 3 are in the new 'degraded-carrier'
state, and makes 'degraded' state as all slaves are active but no
link local address on master.
man/networkctl.xml
src/libsystemd/sd-network/network-util.c
src/libsystemd/sd-network/network-util.h
src/network/networkctl.c
src/network/networkd-link.c
test/test-network/systemd-networkd-tests.py