Skip to content

Commit

Permalink
fix(switch): Incorrect procedure for deleting the resource
Browse files Browse the repository at this point in the history
Fixes #325
  • Loading branch information
vaerh committed Jan 16, 2024
1 parent 714efb0 commit 8bb81e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routeros/resource_interface_ethernet_switch_vlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
// https://help.mikrotik.com/docs/display/ROS/Switch+Chip+Features#SwitchChipFeatures-VLANTable
func ResourceInterfaceEthernetSwitchVlan() *schema.Resource {
resSchema := map[string]*schema.Schema{
MetaResourcePath: PropResourcePath("/interface/ethernet/switch/vlan"),
MetaId: PropId(Id),
MetaResourcePath: PropResourcePath("/interface/ethernet/switch/vlan"),
MetaId: PropId(Id),

KeyComment: PropCommentRw,
KeyDisabled: PropDisabledRw,
Expand Down Expand Up @@ -58,7 +58,7 @@ func ResourceInterfaceEthernetSwitchVlan() *schema.Resource {
CreateContext: DefaultCreate(resSchema),
ReadContext: DefaultRead(resSchema),
UpdateContext: DefaultUpdate(resSchema),
DeleteContext: DefaultSystemDelete(resSchema),
DeleteContext: DefaultDelete(resSchema),

Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
Expand Down

0 comments on commit 8bb81e9

Please sign in to comment.