VirtualBox

Changeset 80707 in vbox


Ignore:
Timestamp:
Sep 10, 2019 4:32:44 PM (5 years ago)
Author:
vboxsync
Message:

OCI: Add --cloudlaunchmode and --cloudprivateip options to export --cloud

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

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

    r80676 r80707  
    11841184    { "--cloudkeepobject",      'K', RTGETOPT_REQ_STRING },
    11851185    { "--cloudlaunchinstance",  'L', RTGETOPT_REQ_STRING },
     1186    { "--cloudlaunchmode",      'M', RTGETOPT_REQ_STRING },
     1187    { "--cloudprivateip",       'i', RTGETOPT_REQ_STRING },
    11861188};
    11871189
     
    13791381                    break;
    13801382
     1383                case 'i': /* --cloudprivateip */
     1384                    if (actionType != CLOUD)
     1385                        return errorSyntax(USAGE_EXPORTAPPLIANCE, "Option \"%s\" requires preceding --cloud argument.",
     1386                                           GetState.pDef->pszLong);
     1387                    mapArgsMapsPerVsys[ulCurVsys]["cloudprivateip"] = ValueUnion.psz;
     1388                    break;
     1389
    13811390                case 'F':   // --cloudprofile
    13821391                    if (actionType != CLOUD)
     
    14051414                                           GetState.pDef->pszLong);
    14061415                    mapArgsMapsPerVsys[ulCurVsys]["cloudlaunchinstance"] = ValueUnion.psz;
     1416                    break;
     1417
     1418                case 'M': /* --cloudlaunchmode */
     1419                    if (actionType != CLOUD)
     1420                        return errorSyntax(USAGE_EXPORTAPPLIANCE, "Option \"%s\" requires preceding --cloud argument.",
     1421                                           GetState.pDef->pszLong);
     1422                    mapArgsMapsPerVsys[ulCurVsys]["cloudlaunchmode"] = ValueUnion.psz;
    14071423                    break;
    14081424
     
    15841600                                             Bstr(itD->second).raw(),
    15851601                                             Bstr(itD->second).raw());
     1602                    else if (itD->first == "cloudprivateip")
     1603                        pVSD->AddDescription(VirtualSystemDescriptionType_CloudPrivateIP,
     1604                                             Bstr(itD->second).raw(), NULL);
    15861605                    else if (itD->first == "cloudprofile")
    15871606                        pVSD->AddDescription(VirtualSystemDescriptionType_CloudProfileName,
     
    15961615                                             Bstr(itD->second).raw(),
    15971616                                             Bstr(itD->second).raw());
     1617                    else if (itD->first == "cloudlaunchmode")
     1618                        pVSD->AddDescription(VirtualSystemDescriptionType_CloudOCILaunchMode,
     1619                                             Bstr(itD->second).raw(), NULL);
    15981620                    else if (itD->first == "cloudlaunchinstance")
    15991621                        pVSD->AddDescription(VirtualSystemDescriptionType_CloudLaunchInstance,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r80074 r80707  
    798798                     "                                    [--cloudocisubnet <OCI subnet id>]\n"
    799799                     "                                    [--cloudkeepobject <true/false>]\n"
     800                     "                                    [--cloudlaunchmode EMULATED|PARAVIRTUALIZED]\n"
    800801                     "                                    [--cloudlaunchinstance <true/false>]\n"
    801802                     "                                    [--cloudpublicip <true/false>]\n"
     803                     "                                    [--cloudprivateip <ip>]\n"
    802804                     "\n", SEP);
    803805
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