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

Remove type attribute from freeform.Link struct #878

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
13 changes: 0 additions & 13 deletions apstra/freeform/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type Link struct {
BlueprintId types.String `tfsdk:"blueprint_id"`
Id types.String `tfsdk:"id"`
Speed types.String `tfsdk:"speed"`
Type types.String `tfsdk:"type"`
Name types.String `tfsdk:"name"`
AggregateLinkId types.String `tfsdk:"aggregate_link_id"`
Endpoints types.Map `tfsdk:"endpoints"`
Expand Down Expand Up @@ -65,12 +64,6 @@ func (o Link) DataSourceAttributes() map[string]dataSourceSchema.Attribute {
"| 150G | 10m | 100g | 1g | 40G",
Computed: true,
},
"type": dataSourceSchema.StringAttribute{
MarkdownDescription: "`aggregate_link` | `ethernet`\n" +
"An 'ethernet' link is a normal front-panel interface. " +
"An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs.",
Computed: true,
},
"aggregate_link_id": dataSourceSchema.StringAttribute{
MarkdownDescription: "ID of Aggregate Link node to which this Link belongs, if any.",
Computed: true,
Expand Down Expand Up @@ -114,12 +107,6 @@ func (o Link) ResourceAttributes() map[string]resourceSchema.Attribute {
MarkdownDescription: "Speed of the Freeform Link.",
Computed: true,
},
"type": resourceSchema.StringAttribute{
MarkdownDescription: "`aggregate_link` | `ethernet`\n" +
"An 'ethernet' link is a normal front-panel interface. " +
"An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs.",
Computed: true,
},
"aggregate_link_id": resourceSchema.StringAttribute{
MarkdownDescription: "This field always `null` in resource context. Ignore. " +
"This information can be learned by invoking the complimentary data source.",
Expand Down
3 changes: 0 additions & 3 deletions docs/data-sources/freeform_link.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ output "test_Link_out" { value = data.apstra_freeform_link.test }
# "a",
# "b",
# ])
# "type" = "ethernet"
#}
```

Expand All @@ -74,8 +73,6 @@ output "test_Link_out" { value = data.apstra_freeform_link.test }
- `endpoints` (Attributes Map) Endpoints of the Link, a Map keyed by System ID. (see [below for nested schema](#nestedatt--endpoints))
- `speed` (String) Speed of the Link 200G | 5G | 1G | 100G | 150g | 40g | 2500M | 25G | 25g | 10G | 50G | 800G | 10M | 100m | 2500m | 50g | 400g | 400G | 200g | 5g | 800g | 100M | 10g | 150G | 10m | 100g | 1g | 40G
- `tags` (Set of String) Set of unique case-insensitive tag labels
- `type` (String) `aggregate_link` | `ethernet`
An 'ethernet' link is a normal front-panel interface. An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs.

<a id="nestedatt--endpoints"></a>
### Nested Schema for `endpoints`
Expand Down
2 changes: 0 additions & 2 deletions docs/resources/freeform_link.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ resource "apstra_freeform_link" "test" {
- `aggregate_link_id` (String) This field always `null` in resource context. Ignore. This information can be learned by invoking the complimentary data source.
- `id` (String) ID of the Freeform Link.
- `speed` (String) Speed of the Freeform Link.
- `type` (String) `aggregate_link` | `ethernet`
An 'ethernet' link is a normal front-panel interface. An 'aggregate_link' is a bonded interface which is typically used for LACP or Static LAGs.

<a id="nestedatt--endpoints"></a>
### Nested Schema for `endpoints`
Expand Down
2 changes: 0 additions & 2 deletions examples/data-sources/apstra_freeform_link/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ output "test_Link_out" { value = data.apstra_freeform_link.test }
# "a",
# "b",
# ])
# "type" = "ethernet"
#}

Loading