| 773 | } |
| 774 | |
| 775 | void NanaBox::ComputeSystemAddNetworkAdapter( |
| 776 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |
| 777 | NanaBox::NetworkAdapterConfiguration const& Configuration) |
| 778 | { |
| 779 | nlohmann::json Result; |
| 780 | |
| 781 | Result["ResourcePath"] = Mile::FormatString( |
| 782 | "VirtualMachine/Devices/NetworkAdapters/%s", |
| 783 | Configuration.EndpointId.c_str()); |
| 784 | Result["RequestType"] = "Add"; |
| 785 | Result["Settings"] = NanaBox::MakeHcsNetworkAdapterConfiguration( |
| 786 | Configuration); |
| 787 | |
| 788 | Instance->Modify(winrt::to_hstring(Result.dump())); |
| 789 | } |
| 790 | |
| 791 | void NanaBox::ComputeSystemRemoveNetworkAdapter( |
| 792 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |