Changeset 75512 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 16, 2018 11:33:38 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r72826 r75512 52 52 OP_ADD = 1000, 53 53 OP_REMOVE, 54 OP_MODIFY 54 OP_MODIFY, 55 OP_RESTART 55 56 } OPCODE; 56 57 … … 319 320 320 321 if( enmCode != OP_REMOVE 322 && enmCode != OP_RESTART 321 323 && GlobalDhcpOptions.empty() 322 324 && VmSlot2Options.empty()) … … 374 376 } 375 377 376 if(enmCode != OP_REMOVE) 378 if (enmCode == OP_RESTART) 379 { 380 CHECK_ERROR(svr, Restart()); 381 if(FAILED(rc)) 382 return errorArgument("Failed to restart server"); 383 } 384 else if (enmCode == OP_REMOVE) 385 { 386 CHECK_ERROR(a->virtualBox, RemoveDHCPServer(svr)); 387 if(FAILED(rc)) 388 return errorArgument("Failed to remove server"); 389 } 390 else 377 391 { 378 392 if (pIp || pNetmask || pLowerIp || pUpperIp) … … 425 439 } 426 440 } 427 else428 {429 CHECK_ERROR(a->virtualBox, RemoveDHCPServer(svr));430 if(FAILED(rc))431 return errorArgument("Failed to remove server");432 }433 441 434 442 return RTEXITCODE_SUCCESS; … … 448 456 else if (strcmp(a->argv[0], "remove") == 0) 449 457 rcExit = handleOp(a, OP_REMOVE, 1); 458 else if (strcmp(a->argv[0], "restart") == 0) 459 rcExit = handleOp(a, OP_RESTART, 1); 450 460 else 451 461 rcExit = errorSyntax(USAGE_DHCPSERVER, "Invalid parameter '%s'", Utf8Str(a->argv[0]).c_str());
Note:
See TracChangeset
for help on using the changeset viewer.