Nic.cs 751 B

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