provider/triton: Import triton_vlan resources

pull/6622/head
James Nugent 10 years ago committed by Mitchell Hashimoto
parent 655bb4b286
commit 03fe5a7467
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

@ -15,6 +15,9 @@ func resourceVLAN() *schema.Resource {
Read: resourceVLANRead,
Update: resourceVLANUpdate,
Delete: resourceVLANDelete,
Importer: &schema.ResourceImporter{
State: resourceVLANImporter,
},
Schema: map[string]*schema.Schema{
"vlan_id": {
@ -130,3 +133,7 @@ func resourceVLANIDInt16(id string) (int16, error) {
return int16(result), nil
}
func resourceVLANImporter(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
return []*schema.ResourceData{d}, nil
}

Loading…
Cancel
Save