Skip to content

Commit

Permalink
Merge pull request #878 from Juniper/877-remove-type-attribute-from-a…
Browse files Browse the repository at this point in the history
…pstra_freeform_link-resource-and-data-source

Remove `type` attribute from `freeform.Link` struct
  • Loading branch information
chrismarget-j authored Sep 26, 2024
2 parents 5246768 + 014b3de commit a75f1f2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
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"
#}

0 comments on commit a75f1f2

Please sign in to comment.