| 59 | } |
| 60 | |
| 61 | nlohmann::json NanaBox::MakeHcsNetworkAdapterConfiguration( |
| 62 | NanaBox::NetworkAdapterConfiguration const& Configuration) |
| 63 | { |
| 64 | nlohmann::json Result; |
| 65 | |
| 66 | if (!Configuration.Connected) |
| 67 | { |
| 68 | Result["ConnectionState"] = "Disabled"; |
| 69 | } |
| 70 | Result["EndpointId"] = Configuration.EndpointId; |
| 71 | Result["MacAddress"] = Configuration.MacAddress; |
| 72 | |
| 73 | return Result; |
| 74 | } |
| 75 | |
| 76 | nlohmann::json NanaBox::MakeHcsScsiDeviceConfiguration( |
| 77 | NanaBox::ScsiDeviceConfiguration const& Configuration) |
nothing calls this directly
no outgoing calls
no test coverage detected