Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

The description of the GatewayNatRuleType is not returned

$
0
0

Hi

 

If a new NAT rule is added to the NAT service of the edge gateway and the description for the rule is set.

     GatewayNatRuleType rIn = OBJECT_FACTORY.createGatewayNatRuleType();
     NatRuleType ruleIn = OBJECT_FACTORY.createNatRuleType();
     ruleIn.setDescription("something");

     ....

    gateway.configureServices(edgeGatewayServiceConfiguration).waitForTask(TIMEOUT);

 

The retrieved description for the rule is empty.

Here are the POST and GET requests (I removed the irrelevant sections so they are not so long)

The relevant section is highlighted..

 

How to file this bug?

 

Best wishes,

Denes

POST (configuration)

<ns6:EdgeGatewayServiceConfiguration xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5">
    <ns6:GatewayDhcpService>
        <ns6:IsEnabled>true</ns6:IsEnabled>
        <ns6:Pool>
            <ns6:IsEnabled>true</ns6:IsEnabled>
            <ns6:Network href="https://172.16.1.20/api/admin/network/e448fc1e-8985-46be-8b29-f6ff789b660e" name="internalNetForVdc1" type="application/vnd.vmware.vcloud.orgVdcNetwork+xml"/>
            <ns6:DefaultLeaseTime>3600</ns6:DefaultLeaseTime>
            <ns6:MaxLeaseTime>7200</ns6:MaxLeaseTime>
            <ns6:LowIpAddress>192.168.0.4</ns6:LowIpAddress>
            <ns6:HighIpAddress>192.168.0.253</ns6:HighIpAddress>
        </ns6:Pool>
    </ns6:GatewayDhcpService>
    <ns6:FirewallService>
        <ns6:IsEnabled>true</ns6:IsEnabled>
        <ns6:DefaultAction>drop</ns6:DefaultAction>
        <ns6:LogDefaultAction>false</ns6:LogDefaultAction>
    </ns6:FirewallService>
    <ns6:NatService>
        <ns6:IsEnabled>true</ns6:IsEnabled>
        <ns6:NatRule>
            <ns6:Description>5e8e2682-247d-4691-b2c5-7cbcf396ec09</ns6:Description>
            <ns6:RuleType>DNAT</ns6:RuleType>
            <ns6:IsEnabled>false</ns6:IsEnabled>
            <ns6:GatewayNatRule>
                <ns6:Interface href="https://172.16.1.20/api/admin/network/3489b129-4e3e-40e9-89c3-4ffd526348ed" name="kukuPublicNetwork" type="application/vnd.vmware.admin.network+xml"/>
                <ns6:OriginalIp>172.16.11.2</ns6:OriginalIp>
                <ns6:OriginalPort>any</ns6:OriginalPort>
                <ns6:TranslatedIp>127.1.0.0</ns6:TranslatedIp>
                <ns6:TranslatedPort>any</ns6:TranslatedPort>
                <ns6:Protocol>any</ns6:Protocol>
            </ns6:GatewayNatRule>
        </ns6:NatRule>
    </ns6:NatService>
</ns6:EdgeGatewayServiceConfiguration>

 


<EdgeGateway xmlns="http://www.vmware.com/vcloud/v1.5" status="1" name="edgeGatewayName1" id="urn:vcloud:gateway:7a400781-cf7c-4d90-8b4f-dad58ab39328" type="application/vnd.vmware.admin.edgeGateway+xml" href="https://172.16.1.20/api/admin/edgeGateway/7a400781-cf7c-4d90-8b4f-dad58ab39328" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://172.16.1.20/api/v1.5/schema/master.xsd">
    <Configuration>
        <EdgeGatewayServiceConfiguration>
            <NatService>
                <IsEnabled>true</IsEnabled>
                <NatRule>

<!-- no description field here -->

                    <RuleType>DNAT</RuleType>
                    <IsEnabled>false</IsEnabled>
                    <Id>65538</Id>

                    <GatewayNatRule>
                        <Interface type="application/vnd.vmware.admin.network+xml" name="kukuPublicNetwork" href="https://172.16.1.20/api/admin/network/3489b129-4e3e-40e9-89c3-4ffd526348ed"/>
                        <OriginalIp>172.16.11.2</OriginalIp>
                        <OriginalPort>any</OriginalPort>
                        <TranslatedIp>127.1.0.0</TranslatedIp>
                        <TranslatedPort>any</TranslatedPort>
                        <Protocol>any</Protocol>
                    </GatewayNatRule>
                </NatRule>
            </NatService>
        </EdgeGatewayServiceConfiguration>
    </Configuration>
</EdgeGateway>


Viewing all articles
Browse latest Browse all 193198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>