Nic.cs 758 B

12345678910111213141516171819202122232425262728293031323334
  1. namespace RackPeek.Domain.Resources.SubResources;
  2. public class Nic {
  3. public static readonly string[] ValidNicTypes =
  4. {
  5. // Copper Ethernet
  6. "rj45",
  7. // SFP family
  8. "sfp", // 1G
  9. "sfp+", // 10G
  10. "sfp28", // 25G
  11. "sfp56", // 50G
  12. // QSFP family
  13. "qsfp+", // 40G
  14. "qsfp28", // 100G
  15. "qsfp56", // 200G
  16. "qsfp-dd", // 400G (QSFP Double Density)
  17. // OSFP (400G+)
  18. "osfp",
  19. // Legacy / niche but still seen
  20. "xfp", "cx4",
  21. // Management / special-purpose
  22. "mgmt" // Dedicated management NIC (IPMI/BMC)
  23. };
  24. public string? Type { get; set; }
  25. public double? Speed { get; set; }
  26. public int? Ports { get; set; }
  27. }