jeremmfr / terraform-provider-junos

Terraform provider for Junos devices
https://registry.terraform.io/providers/jeremmfr/junos
MIT License
61 stars 21 forks source link

Feature request: add "remote-vtep-list" option in "vxlan" block for resource junos_bridge_domain #672

Closed Vokunne closed 2 months ago

Vokunne commented 2 months ago

Description

Hi there,

During configuration static vxlan tunnels with bridge-domain + virtual router I faced that Junos requires to tie remote VTEP addresses to bridge domain configuration. So I'd like to ask about implementation this feature in vxlan block for junos_bridge_domain resource

New or Affected Resource(s)

junos_bridge_domain

Example Junos Configuration

bridge-domains {
      bd1 {
           vlan-id 5;
            vxlan {
                 vni 5005;
                 ingress-node-replication;
                 static-remote-vtep-list [ 10.1.1.1 10.1.1.2 ];
            }
      }
}

Potential Terraform Configuration

```hcl
resource "junos_bridge_domain" "bd1" {
  name               = "bd1"
  routing_interface  = "irb.5"
  routing_instance   = "vswitch-bd1"
  vlan_id            = "5"
  domain_type_bridge = true
  interface          = ["ae0.5"]
  vxlan {
    vni                           = 100005
    decapsulate_accept_inner_vlan = null
    encapsulate_inner_vlan        = null
    ingress_node_replication      = true
    remote-vtep-list = [10.1.1.1, 10.1.1.2]
  }
}


### References
<!--
Are there any other GitHub issues or pull requests that should be linked here? Junos blog posts or documentation? 
-->
Link to Junos docs:

https://www.juniper.net/documentation/us/en/software/junos/evpn-vxlan/topics/ref/statement/static-remote-vtep-list-edit-vlans-bridge-domains-vxlan.html
jeremmfr commented 2 months ago

Hi 👋

I will take care of adding this.

Vokunne commented 2 months ago

Thank you so much!