VirtualBox

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


Ignore:
Timestamp:
Apr 28, 2021 8:05:45 PM (4 years ago)
Author:
vboxsync
Message:

VBoxManage/NATNetwork: Print more attributes. bugref:8124

File:
1 edited

Legend:

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

    r87370 r88755  
    9191    {
    9292        Bstr strVal;
     93        BOOL fVal;
     94
    9395        CHECK_ERROR_BREAK(pNATNet, COMGETTER(NetworkName)(strVal.asOutParam()));
    94         RTPrintf("Name:        %ls\n", strVal.raw());
     96        RTPrintf("Name:         %ls\n", strVal.raw());
     97
    9598        CHECK_ERROR_BREAK(pNATNet, COMGETTER(Network)(strVal.asOutParam()));
    96         RTPrintf("Network:     %ls\n", strVal.raw());
     99        RTPrintf("Network:      %ls\n", strVal.raw());
     100
    97101        CHECK_ERROR_BREAK(pNATNet, COMGETTER(Gateway)(strVal.asOutParam()));
    98         RTPrintf("Gateway:     %ls\n", strVal.raw());
    99         BOOL fVal;
     102        RTPrintf("Gateway:      %ls\n", strVal.raw());
     103
     104        CHECK_ERROR_BREAK(pNATNet, COMGETTER(NeedDhcpServer)(&fVal));
     105        RTPrintf("DHCP Sever:   %s\n",  fVal ? "Yes" : "No");
     106
    100107        CHECK_ERROR_BREAK(pNATNet, COMGETTER(IPv6Enabled)(&fVal));
    101         RTPrintf("IPv6:        %s\n",  fVal ? "Yes" : "No");
    102         if (fVal)
    103         {
    104             CHECK_ERROR_BREAK(pNATNet, COMGETTER(IPv6Prefix)(strVal.asOutParam()));
    105             RTPrintf("IPv6 Prefix: %ls\n", strVal.raw());
    106         }
     108        RTPrintf("IPv6:         %s\n",  fVal ? "Yes" : "No");
     109
     110        CHECK_ERROR_BREAK(pNATNet, COMGETTER(IPv6Prefix)(strVal.asOutParam()));
     111        RTPrintf("IPv6 Prefix:  %ls\n", strVal.raw());
     112
     113        CHECK_ERROR_BREAK(pNATNet, COMGETTER(AdvertiseDefaultIPv6RouteEnabled)(&fVal));
     114        RTPrintf("IPv6 Default: %s\n",  fVal ? "Yes" : "No");
     115
     116
    107117        CHECK_ERROR_BREAK(pNATNet, COMGETTER(Enabled)(&fVal));
    108         RTPrintf("Enabled:     %s\n",  fVal ? "Yes" : "No");
     118        RTPrintf("Enabled:      %s\n",  fVal ? "Yes" : "No");
    109119        /** @todo Add more information here. */
    110120        RTPrintf("\n");
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