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