Commit Graph

2 Commits

Author SHA1 Message Date
Guillaume Raffy 3b002ee17b added handler to made concho work with current hpe's website
This is not finished, there's still to :
- remove hardcoded base chassis id and price
- add handler for amd configurations (only intel configs are currently handled)

- also refatored Dimm class to contain more details (will be useful to estimate ram throughput)
- also added type hinting to dell.py

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4015]
2025-03-17 11:39:24 +01:00
Guillaume Raffy 93a8b77231 refactored because the code was hard to maintain and was hacked in lots of ways (handling of 4 servers per host).
- the prices are now retrived from matinfo's downloaded pages
- the derived prices (such as the price without cpu) are now automatically computed, rather than hardcoded from (hand computation)
- although it's a bit dirty, the architecture of the code is more generic:
  - each configuration is now stored in a Config object, which is able to compute its price.
  - dell specific code is now decoupled into a separate file.
warnings:
- the refactoring is designed to handle the old price tables but this work is not finished (the code using the old price tables is broken at the moment)
- the computed price is currently overestimated, as the price of the base memory dimms should be substracted
-  disks are not currently handled
2020-09-25 16:35:13 +02:00