Open d3m1g0d opened 4 years ago
Also editing the IP address later on doesn't work:
PS> vcd gateway configure-ip-settings --external-network tsa-vcd-testdrive-inet_extnet_375 --subnet-available 172.31.199.0/24 True 172.31.199.133 testorg_gw_01
Usage: vcd gateway configure-ip-settings [OPTIONS] <gateway name>
Try "vcd gateway configure-ip-settings -h" for help.
Error: Subnet not found
PS> vcd info edgeGateway fb2598f3-c5b3-4038-a296-381fcf102049
<EdgeGateway xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
...
<GatewayBackingRef>
<gatewayId>edge-174</gatewayId>
<VCRef id="4b99acd1-2030-46f0-9540-fab500391673" name="" type="com.vmware.vcloud.entity.vimserver"/>
</GatewayBackingRef>
<Configuration>
<GatewayBackingConfig>compact</GatewayBackingConfig>
<GatewayInterfaces>
<GatewayInterface>
<Name>tsa-vcd-testdrive-inet_extnet_375</Name>
<DisplayName>tsa-vcd-testdrive-inet_extnet_375</DisplayName>
<Network href="https://.../api/admin/network/bea44c2e-92cc-41ed-8609-09db0edd61c2" name="tsa-vcd-testdrive-inet_extnet_375" type="application/vnd.vmware.admin.network+xml"/>
<InterfaceType>uplink</InterfaceType>
<SubnetParticipation>
<Gateway>172.31.199.1</Gateway>
<Netmask>255.255.255.0</Netmask>
<IpAddress>172.31.199.20</IpAddress>
<UseForDefaultRoute>false</UseForDefaultRoute>
</SubnetParticipation>
<ApplyRateLimit>false</ApplyRateLimit>
<UseForDefaultRoute>false</UseForDefaultRoute>
</GatewayInterface>
</GatewayInterfaces>
...
</Configuration>
</EdgeGateway>
Sample example is given on the below URL about how to give static IP to an edge gateway: https://github.com/vmware/ansible-module-vcloud-director/blob/master/modules/vcd_vdc_gateway.py
Look at the like number 200.
IP addresses of edge gateways always seem to be auto generated.
Procedure to reproduce issue: