Skip to content

Commit

Permalink
[bugfix] Fix import order in mso_schema_site_bd_subnet and docs in ms…
Browse files Browse the repository at this point in the history
…o_schema_template_bd_subnet (CiscoDevNet#305)
  • Loading branch information
juchowan authored Oct 28, 2024
1 parent 11fba39 commit acf471d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mso/resource_mso_schema_site_bd_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ func resourceMSOSchemaSiteBdSubnetImport(d *schema.ResourceData, m interface{})
if err != nil {
return nil, fmt.Errorf("No Sites found")
}
stateSite := get_attribute[1]
stateTemplate := get_attribute[2]
stateSite := get_attribute[2]
stateTemplate := get_attribute[4]
found := false
stateBd := get_attribute[3]
stateBd := get_attribute[6]
stateIp := import_split[2]
for i := 0; i < count && !found; i++ {
tempCont, err := cont.ArrayElement(i, "sites")
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/schema_template_bd_subnet.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ No attributes are exported.
An existing MSO Schema Template Bridge Domain Subnet can be [imported][docs-import] into this resource via its Id/path, via the following command: [docs-import]: <https://www.terraform.io/docs/import/index.html>

```bash
terraform import mso_schema_template_bd_subnet.bdsub1 {schema_id}/template/{template_name}/bd/{bd_name}/subnet/{ip}
terraform import mso_schema_template_bd_subnet.bdsub1 {schema_id}/template/{template_name}/bd/{bd_name}/ip/{ip}
```

0 comments on commit acf471d

Please sign in to comment.