Sometimes I need to quickly remove one of our data centre switches from production. Typically this is done in preparation of scheduled maintenance, but it could also be necessary if I suspect that it is misbehaving in some way. Recently I stumbled across an undocumented feature in Cumulus Linux that significantly simplified this procedure.
The key is the file /cumulus/switchd/ctrl/shutdown_linkdown
. This file does normally not exist, but if it is created with the contents 1
, ... [continue reading]