HomeFreeBSD

Make lagg creation more fault tolerant

Description

Make lagg creation more fault tolerant

  • Warn, don't exit, when SIOCSLAGGPORT returns an error.

When we exit with an error during lagg creation, a single
failed NIC (which no longer attaches) can prevent lagg
creation and other configuration, such as adding an IPv4
address, and thus leave a machine unreachable.

  • Preserve non-EEXISTS errors for exit status from SIOCSLAGGPORT, in case scripts are looking for it. Hopefully this can be extended if other parts of ifconfig can allow a "soft" failure.
  • Improve the warning message to mention what lagg and what member are problematic.

Reviewed by: jtl, glebius
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D15046

Details

Provenance
gallatinAuthored on
Reviewer
jtl
Differential Revision
D15046: Make lagg creation more fault tolerant
Parents
rS332644: MFC r332421: vt: add three more cp437 mappings for vga textmode
Branches
Unknown
Tags
Unknown