provider/triton: Import triton_vlan resources
This commit is contained in:
parent
655bb4b286
commit
03fe5a7467
|
@ -15,6 +15,9 @@ func resourceVLAN() *schema.Resource {
|
||||||
Read: resourceVLANRead,
|
Read: resourceVLANRead,
|
||||||
Update: resourceVLANUpdate,
|
Update: resourceVLANUpdate,
|
||||||
Delete: resourceVLANDelete,
|
Delete: resourceVLANDelete,
|
||||||
|
Importer: &schema.ResourceImporter{
|
||||||
|
State: resourceVLANImporter,
|
||||||
|
},
|
||||||
|
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
"vlan_id": {
|
"vlan_id": {
|
||||||
|
@ -130,3 +133,7 @@ func resourceVLANIDInt16(id string) (int16, error) {
|
||||||
|
|
||||||
return int16(result), nil
|
return int16(result), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func resourceVLANImporter(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
|
||||||
|
return []*schema.ResourceData{d}, nil
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue