Skip to content

Resources ​

All CRDs are cluster-scoped and reconciled by sonic-operator.

Switch ​

Represents a physical switch and its management connectivity.

Spec fields:

  • management.host: switch management host/IP.
  • management.port: management port (string).
  • macAddress: MAC address assigned to the switch.
  • ports[]: declared list of physical port names.

Status fields:

  • state: Pending, Ready, Failed.
  • macAddress: observed switch MAC.
  • firmwareVersion: observed SONiC OS version.
  • sku: observed hardware SKU.
  • ports[]: observed ports and interface references.

SwitchInterface ​

Represents a single interface and its admin/operational state.

Spec fields:

  • handle: interface handle on the device (e.g. Ethernet0).
  • switchRef: reference to the owning Switch.
  • adminState: desired admin state (Up, Down, Unknown).

Status fields:

  • adminState: observed admin state.
  • operationalState: observed operational state.
  • neighbor: neighbor details (when available).
EU and German government funding logos

Funded by the European Union – NextGenerationEU.

The views and opinions expressed are solely those of the author(s) and do not necessarily reflect the views of the European Union or the European Commission. Neither the European Union nor the European Commission can be held responsible for them.