Skip to content

Commit 4e69386

Browse files
committed
Fix bgp as format resource and data source
1 parent 8459424 commit 4e69386

File tree

6 files changed

+22
-43
lines changed

6 files changed

+22
-43
lines changed

docs/resources/bgp_as_format.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This resource can manage the BGP AS Format configuration.
1414

1515
```terraform
1616
resource "iosxr_bgp_as_format" "example" {
17+
as_format = "asplain"
1718
}
1819
```
1920

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
resource "iosxr_bgp_as_format" "example" {
2+
as_format = "asplain"
23
}

gen/definitions/bgp_as_format.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ path: Cisco-IOS-XR-um-router-bgp-cfg:/as-format
44
doc_category: BGP
55
skip_minimum_test: true
66
attributes:
7-
- yang_name: ""
8-
tf_name: "as_format"
7+
- yang_name: as-format
8+
tf_name: as_format
99
type: String
1010
no_augment_config: true
11-
optional: true
12-
example: "asplain"
11+
example: asplain
1312
enum_values:
14-
- "asdot"
15-
- "asplain"
16-
exclude_test: true
13+
- asdot
14+
- asplain

internal/provider/data_source_iosxr_bgp_as_format_test.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/model_iosxr_bgp_as_format.go

Lines changed: 11 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_iosxr_bgp_as_format_test.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)