What I'm trying to get is how to understand that a VLAN is a network gateway one.
I'm trying to find all private Washington 4 datacenter and from the API I can get 4 vlans, but the portal allows to select one of 3 vlans. It seems this subnet/vlan cannot be used:
{"broadcastAddress"=>"10.170.23.127",
"cidr"=>26,
"gateway"=>"10.170.23.65",
"id"=>1087855,
"isCustomerOwned"=>false,
"isCustomerRoutable"=>false,
"modifyDate"=>"2016-02-03T14:51:45-05:00",
"netmask"=>"255.255.255.192",
"networkIdentifier"=>"10.170.23.64",
"networkVlanId"=>1158237,
"sortOrder"=>"4",
"subnetType"=>"PRIMARY",
"totalIpAddresses"=>"64",
"usableIpAddressCount"=>"61",
"version"=>4,
"addressSpace"=>"PRIVATE",
"datacenter"=>{"id"=>957095, "longName"=>"Washington 4", "name"=>"wdc04", "statusId"=>2},
"networkVlan"=>
{"accountId"=>872113,
"id"=>1158237,
"modifyDate"=>"2016-02-04T12:57:26-05:00",
"name"=>"RZ",
"primarySubnetId"=>1087855,
"attachedNetworkGatewayFlag"=>false,
"vlanNumber"=>844}}
If I pass this vlan id to request an order, I receive this error:
The backend VLAN #1158237 is a Network Gateway VLAN.
So this vlan cannot be used and the portal filters it out. That's ok, but the question is how to understand that this vlan should not be used?
Initially I thought attachedNetworkGatewayFlag will help, but it always false(see above). Any other property could be used here?