metal-stack / metal-api

API to manage and control plane resources like machines, switches, operating system images, machine sizes, networks, IP addresses and more
GNU Affero General Public License v3.0
130 stars 9 forks source link

Detect if a machine has both uplinks up #590

Open majst01 opened 3 days ago

majst01 commented 3 days ago

In Order to prepare the Cumulus SONiC migration we must ensure that every machine is connected physically and logically to both switches.

We could achieve this by using the lldp messages every machine sends to both switches, and the metal-core reports them back to metal-api. But actually we only calculate the Phoned Home state, regardless if one or two switches report that state.

This should be changed that:

mwennrich commented 3 days ago

To be certain metal-core could also check and report if the bgp-connection to all neighbors is up and established.