Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #695 - Documentation Fix #709

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apstra/resource_interface_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ func (o *resourceInterfaceMap) Schema(_ context.Context, _ resource.SchemaReques
Validators: []validator.String{stringvalidator.LengthAtLeast(1)},
},
"interfaces": schema.SetNestedAttribute{
MarkdownDescription: "Ordered list of interface mapping info.",
MarkdownDescription: "Set of interface mapping info.",
Required: true,
Validators: []validator.Set{setvalidator.SizeAtLeast(1)},
NestedObject: schema.NestedAttributeObject{
Attributes: rInterfaceMapInterface{}.attributes(),
},
},
"unused_interfaces": schema.SetNestedAttribute{
MarkdownDescription: "Ordered list of interface mapping info for unused interfaces.",
MarkdownDescription: "Set of of interface mapping info detailing unused interfaces.",
Computed: true,
NestedObject: schema.NestedAttributeObject{
Attributes: rInterfaceMapInterface{}.unusedAttributes(),
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/interface_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ resource "apstra_interface_map" "with_loops" {
### Required

- `device_profile_id` (String) ID of Device Profile to be mapped.
- `interfaces` (Attributes Set) Ordered list of interface mapping info. (see [below for nested schema](#nestedatt--interfaces))
- `interfaces` (Attributes Set) Set of interface mapping info. (see [below for nested schema](#nestedatt--interfaces))
- `logical_device_id` (String) ID of Logical Device to be mapped.
- `name` (String) Interface Map name as displayed in the web UI

### Read-Only

- `id` (String) Apstra ID number of the Interface Map
- `unused_interfaces` (Attributes Set) Ordered list of interface mapping info for unused interfaces. (see [below for nested schema](#nestedatt--unused_interfaces))
- `unused_interfaces` (Attributes Set) Set of of interface mapping info detailing unused interfaces. (see [below for nested schema](#nestedatt--unused_interfaces))

<a id="nestedatt--interfaces"></a>
### Nested Schema for `interfaces`
Expand Down
Loading