diff --git a/mmv1/products/compute/api.yaml b/mmv1/products/compute/api.yaml index ebade4ca843b..a74a32e2cba6 100644 --- a/mmv1/products/compute/api.yaml +++ b/mmv1/products/compute/api.yaml @@ -13333,7 +13333,6 @@ objects: description: | IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. - output: true - !ruby/object:Api::Type::String name: 'peerIpAddress' description: | diff --git a/mmv1/products/compute/terraform.yaml b/mmv1/products/compute/terraform.yaml index e2550bc6ce10..26f341c6e1f8 100644 --- a/mmv1/products/compute/terraform.yaml +++ b/mmv1/products/compute/terraform.yaml @@ -2233,6 +2233,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides custom_expand: 'templates/terraform/custom_expand/bool_to_upper_string.erb' custom_flatten: 'templates/terraform/custom_flatten/string_to_bool.erb' send_empty_value: true + ipAddress: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true SecurityPolicy: !ruby/object:Overrides::Terraform::ResourceOverride exclude: true ServiceAttachment: !ruby/object:Overrides::Terraform::ResourceOverride diff --git a/mmv1/third_party/terraform/tests/resource_compute_router_bgp_peer_test.go b/mmv1/third_party/terraform/tests/resource_compute_router_bgp_peer_test.go index 3a7d76751aee..e08bcb3f78de 100644 --- a/mmv1/third_party/terraform/tests/resource_compute_router_bgp_peer_test.go +++ b/mmv1/third_party/terraform/tests/resource_compute_router_bgp_peer_test.go @@ -315,6 +315,7 @@ resource "google_compute_router_peer" "foobar" { name = "%s" router = google_compute_router.foobar.name region = google_compute_router.foobar.region + ip_address = "169.254.3.1" peer_ip_address = "169.254.3.2" peer_asn = 65515 advertised_route_priority = 100