Skip to content

Commit

Permalink
renamed bgp prop in rt datasource and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mfr-6 authored and stephybun committed Jul 17, 2023
1 parent c381244 commit e115d68
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions internal/services/network/route_table_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ func dataSourceRouteTable() *pluginsdk.Resource {
},

Schema: map[string]*pluginsdk.Schema{
"disable_bgp_route_propagation": {
Type: pluginsdk.TypeBool,
Computed: true,
},

"name": {
Type: pluginsdk.TypeString,
Required: true,
Expand All @@ -40,6 +35,11 @@ func dataSourceRouteTable() *pluginsdk.Resource {

"resource_group_name": commonschema.ResourceGroupNameForDataSource(),

"bgp_route_propagation_enabled": {
Type: pluginsdk.TypeBool,
Computed: true,
},

"location": commonschema.LocationComputed(),

"route": {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/network/route_table_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func TestAccDataSourceRouteTable_basic(t *testing.T) {
{
Config: r.basic(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).Key("disable_bgp_route_propagation").Exists(),
check.That(data.ResourceName).Key("name").Exists(),
check.That(data.ResourceName).Key("resource_group_name").Exists(),
check.That(data.ResourceName).Key("bgp_route_propagation_enabled").Exists(),
check.That(data.ResourceName).Key("location").Exists(),
check.That(data.ResourceName).Key("route.#").Exists(),
check.That(data.ResourceName).Key("route.#").HasValue("0"),
Expand Down
3 changes: 2 additions & 1 deletion internal/services/network/route_table_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ func resourceRouteTable() *pluginsdk.Resource {
},
},
},


//TODO rename to bgp_route_propagation_enabled in 4.0
"disable_bgp_route_propagation": {
Type: pluginsdk.TypeBool,
Optional: true,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/route_table.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The following arguments are supported:

The following attributes are exported:

* `disable_bgp_route_propagation` - Boolean flag which controls propagation of routes learned by BGP on that route table.
* `bgp_route_propagation_enabled` - Boolean flag which controls propagation of routes learned by BGP on that route table.

* `id` - The Route Table ID.

Expand Down

0 comments on commit e115d68

Please sign in to comment.