Specify that the vlan attribute in cloudstack is only usable for ROOT admins and stop reading it back

This commit is contained in:
Carles Figuerola 2016-01-21 09:52:27 -06:00
parent 2d0d67de1c
commit e2d6f7c5e9
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,6 @@ func resourceCloudStackNetworkRead(d *schema.ResourceData, meta interface{}) err
d.Set("display_text", n.Displaytext)
d.Set("cidr", n.Cidr)
d.Set("gateway", n.Gateway)
d.Set("vlan", n.Vlan)
setValueOrID(d, "network_offering", n.Networkofferingname, n.Networkofferingid)
setValueOrID(d, "project", n.Project, n.Projectid)

View File

@ -47,7 +47,8 @@ The following arguments are supported:
for this network.
* `vlan` - (Optional) The VLAN number (1-4095) the network will use. This might be
required by the Network Offering if specifyVlan=true is set.
required by the Network Offering if specifyVlan=true is set. Only the ROOT
admin can set this value.
* `vpc` - (Optional) The name or ID of the VPC to create this network for. Changing
this forces a new resource to be created.