MCPcopy Create free account
hub / github.com/M2Team/NanaBox / MakeHcsNetworkAdapterConfiguration

Method MakeHcsNetworkAdapterConfiguration

NanaBox/ConfigurationManager.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61nlohmann::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
76nlohmann::json NanaBox::MakeHcsScsiDeviceConfiguration(
77 NanaBox::ScsiDeviceConfiguration const& Configuration)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected