Changeset 75918 in vbox
- Timestamp:
- Dec 3, 2018 5:09:43 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127124
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r75819 r75918 116 116 { "--options", 'o', RTGETOPT_REQ_NOTHING }, 117 117 { "--vm", 'n', RTGETOPT_REQ_STRING}, /* only with -o */ 118 { "-- slot", 's', RTGETOPT_REQ_UINT8}, /* only with -o and -n */118 { "--nic", 'c', RTGETOPT_REQ_UINT8}, /* only with -o and -n */ 119 119 { "--id", 'i', RTGETOPT_REQ_UINT8}, /* only with -o */ 120 120 { "--value", 'p', RTGETOPT_REQ_STRING}, /* only with -i */ … … 240 240 { 241 241 // {"--vm", 'n', RTGETOPT_REQ_STRING}, /* only with -o */ 242 // {"-- slot", 's', RTGETOPT_REQ_UINT8}, /* only with -o and -n*/242 // {"--nic", 'c', RTGETOPT_REQ_UINT8}, /* only with -o and -n*/ 243 243 // {"--id", 'i', RTGETOPT_REQ_UINT8}, /* only with -o */ 244 244 // {"--value", 'p', RTGETOPT_REQ_STRING} /* only with -i */ … … 266 266 break; /* end of --vm-name */ 267 267 268 case ' s': // --slot268 case 'c': // --nic 269 269 { 270 270 if (!fVmOptionRead) … … 273 273 274 274 u8Slot = ValueUnion.u8; 275 } 276 break; /* end of --slot */ 275 276 if (u8Slot < 1) 277 return errorSyntax(USAGE_DHCPSERVER, 278 "invalid NIC number: %u", u8Slot); 279 --u8Slot; 280 } 281 break; /* end of --nic */ 277 282 278 283 case 'i': // --id … … 298 303 && u8Slot == (uint8_t)~0) 299 304 return errorSyntax(USAGE_DHCPSERVER, 300 "-- slotwasn't found");305 "--nic wasn't found"); 301 306 302 307 DhcpOpts &opts = fVmOptionRead ? VmSlot2Options[VmNameSlotKey(pszVmName, u8Slot)] … … 320 325 && u8Slot == (uint8_t)~0) 321 326 return errorSyntax(USAGE_DHCPSERVER, 322 "-- slotwasn't found");327 "--nic wasn't found"); 323 328 324 329 DhcpOptIds &optIds = fVmOptionRead ? VmSlot2Options2Delete[VmNameSlotKey(pszVmName, u8Slot)] -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r75819 r75918 1211 1211 " --upperip <upper_ip>]\n" 1212 1212 " [--enable | --disable]\n" 1213 " [--options [--vm <name> -- slot <number>]\n"1213 " [--options [--vm <name> --nic <1-N>]\n" 1214 1214 " --id <number> [--value <string> | --remove]]\n" 1215 1215 " (multiple options allowed after --options)\n\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r75850 r75918 796 796 CHECK_ERROR2I_RET(pSrv, GetVmSlotOptions(vmName.raw(), uSlot, ComSafeArrayAsOutParam(options)), hrcCheck); 797 797 if (options.size()) 798 RTPrintf("Options for slot #%d of '%ls':\n", uSlot, vmName.raw());798 RTPrintf("Options for NIC %d of '%ls':\n", uSlot + 1, vmName.raw()); 799 799 for (size_t i = 0; i < options.size(); ++i) 800 800 RTPrintf(" %ls\n", options[i]);
Note:
See TracChangeset
for help on using the changeset viewer.