code: func (*SwitchesTable) needsUpdate(row, cfg *Switch) bool {
  	return row.Ports != cfg.Ports || row.Description != cfg.Description || row.State != cfg.State || row.RackId != cfg.RackId
  }
docs: // needsUpdate returns true if the given row needs to be updated to match the given config.