Skip to content

Conversation

@jkalandaibm
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@jkalandaibm jkalandaibm changed the title feat: Pullin in the latest newtworking-go-sdk version feat: Pulling in the latest newtworking-go-sdk version Oct 15, 2025
@jkalandaibm
Copy link
Contributor Author

Ensuring prefix filters are being displayed for RGRE connections:

Ensuring prefix filters are being displayed for an RGRE with prefix filters, where the .tf file is:


data "ibm_tg_gateway" "existing_tg_gw" {
  name = "jtawe-rgre-test-gw-bbsdltst"
}


variable "connection_id" {
  type        = string
  default     = "8512ebf6-a2af-47ee-9f9e-ea2e8322a3da"
}

locals {
  connection_one = try(
    [
      for c in data.ibm_tg_gateway.existing_tg_gw.connections :
      c if try(c.connection_id, c.id) == var.connection_id
    ][0],
    null
  )
}

output "connection_one" {
  value       = local.connection_one
  description = "Only the specified connection."
}

# Prefix filters for that one connection
data "ibm_tg_connection_prefix_filters" "one" {
  gateway       = data.ibm_tg_gateway.existing_tg_gw.id
  connection_id = var.connection_id
}

output "prefix_filters" {
  value       = data.ibm_tg_connection_prefix_filters.one.prefix_filters
  description = "Prefix filters on the specified connection."
}

and output is:

 + connection_one = {
      + base_connection_id    = ""
      + base_network_type     = "classic"
      + created_at            = "2025-10-15T16:30:32.802Z"
      + default_prefix_filter = ""
      + id                    = "8512ebf6-a2af-47ee-9f9e-ea2e8322a3da"
      + local_bgp_asn         = 0
      + local_gateway_ip      = ""
      + local_tunnel_ip       = ""
      + mtu                   = 0
      + name                  = "jeff-redundant-gre-connection-bbsdltst"
      + network_account_id    = ""
      + network_id            = ""
      + network_type          = "redundant_gre"
      + remote_bgp_asn        = 0
      + remote_gateway_ip     = ""
      + remote_tunnel_ip      = ""
      + status                = "attached"
      + tunnels               = [
          + {
              + created_at        = "2025-10-15T16:30:32.831Z"
              + local_bgp_asn     = 4201065540
              + local_gateway_ip  = "192.168.100.1"
              + local_tunnel_ip   = "192.168.101.1"
              + mtu               = 9000
              + name              = "jeff-unbound-gre-tunnel-1-bbsdltst"
              + remote_bgp_asn    = 65010
              + remote_gateway_ip = "10.208.197.39"
              + remote_tunnel_ip  = "192.168.101.2"
              + status            = "attached"
              + tunnel_id         = "97d182d7-8b3b-42bc-b56a-92aa8a87eaf1"
              + updated_at        = "2025-10-15T16:30:58.811Z"
              + zone              = "us-south-1"
            },
          + {
              + created_at        = "2025-10-15T16:30:33.520Z"
              + local_bgp_asn     = 4201065540
              + local_gateway_ip  = "192.168.102.1"
              + local_tunnel_ip   = "192.168.103.1"
              + mtu               = 9000
              + name              = "jeff-unbound-gre-tunnel-2-bbsdltst"
              + remote_bgp_asn    = 65011
              + remote_gateway_ip = "10.208.197.39"
              + remote_tunnel_ip  = "192.168.103.2"
              + status            = "attached"
              + tunnel_id         = "498929a4-a3aa-4ef1-bdd0-f381042b7327"
              + updated_at        = "2025-10-15T16:31:04.327Z"
              + zone              = "us-south-1"
            },
        ]
      + updated_at            = "2025-10-15T16:30:32.802Z"
      + zone                  = ""
    }
  + prefix_filters = [
      + {
          + action     = "permit"
          + before     = "0888b286-758c-4015-ae25-9bf676e7b5ed"
          + created_at = "2025-10-15T16:30:32.874Z"
          + ge         = 0
          + id         = "5be40f8c-024c-44c9-a873-e411d549f853"
          + le         = 0
          + prefix     = "192.168.100.0/24"
          + updated_at = "2025-10-15T16:30:32.896Z"
        },
      + {
          + action     = "deny"
          + before     = ""
          + created_at = "2025-10-15T16:30:32.885Z"
          + ge         = 26
          + id         = "0888b286-758c-4015-ae25-9bf676e7b5ed"
          + le         = 30
          + prefix     = "192.168.101.0/26"
          + updated_at = "2025-10-15T16:30:32.885Z"
        },
    ]

dependency: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant