adding max packet parts to device info width for linked cards and network cards

closes #2294
This commit is contained in:
payonel 2017-12-02 23:12:34 -08:00
parent 62e38f40df
commit cad5026a5f
2 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,8 @@ class LinkedCard extends prefab.ManagedEnvironment with QuantumNetwork.QuantumNo
DeviceAttribute.Description -> "Quantumnet controller",
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
DeviceAttribute.Product -> "HyperLink IV: Ender Edition",
DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString
DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString,
DeviceAttribute.Width -> Settings.get.maxNetworkPacketParts
)
override def getDeviceInfo: util.Map[String, String] = deviceInfo

View File

@ -48,7 +48,8 @@ class NetworkCard(val host: EnvironmentHost) extends prefab.ManagedEnvironment w
DeviceAttribute.Description -> "Ethernet controller",
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
DeviceAttribute.Product -> "42i520 (MPN-01)",
DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString
DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString,
DeviceAttribute.Width -> Settings.get.maxNetworkPacketParts
)
override def getDeviceInfo: util.Map[String, String] = deviceInfo