VirtualBox

Changeset 75617 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 20, 2018 11:59:31 AM (6 years ago)
Author:
vboxsync
Message:

Rolled back r126789.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp

    r75614 r75617  
    5252    OP_ADD = 1000,
    5353    OP_REMOVE,
    54     OP_MODIFY,
    55     OP_RESTART
     54    OP_MODIFY
    5655} OPCODE;
    5756
     
    320319
    321320    if(   enmCode != OP_REMOVE
    322        && enmCode != OP_RESTART
    323321       && GlobalDhcpOptions.empty()
    324322       && VmSlot2Options.empty())
     
    376374    }
    377375
    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)
    391377    {
    392378        if (pIp || pNetmask || pLowerIp || pUpperIp)
     
    439425        }
    440426    }
     427    else
     428    {
     429        CHECK_ERROR(a->virtualBox, RemoveDHCPServer(svr));
     430        if(FAILED(rc))
     431            return errorArgument("Failed to remove server");
     432    }
    441433
    442434    return RTEXITCODE_SUCCESS;
     
    456448    else if (strcmp(a->argv[0], "remove") == 0)
    457449        rcExit = handleOp(a, OP_REMOVE, 1);
    458     else if (strcmp(a->argv[0], "restart") == 0)
    459         rcExit = handleOp(a, OP_RESTART, 1);
    460450    else
    461451        rcExit = errorSyntax(USAGE_DHCPSERVER, "Invalid parameter '%s'", Utf8Str(a->argv[0]).c_str());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette