jeremmfr / terraform-provider-junos

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

Add vni_extend attribute to resource_vlan #132

Closed dejongm closed 3 years ago

dejongm commented 3 years ago

Add the attribute vni_extend to resource vlan to facilitate the extention of VLAN vni's into EVPN.

                                 "vxlan": {
                                 ....
                                                "vni_extend": {
                                                        Type:     schema.TypeBool,
                                                        Optional: true,
                                                },
                                 ....
                                 }

Placing this in resource_vlan and not in protocol_evpn due to the dependency of the VLAN being created before setting it in the extended-vni-list.

jeremmfr commented 3 years ago

Do you have an example of the junos configuration that this will generate ?

dejongm commented 3 years ago

Config generated by vxlan vni parameter:

set vlan servers vxlan vni 10010
set vlan workstations vxlan vni 10020
set protocols evpn extended-vni-list 10010
set protocols evpn extended-vni-list 10020
jeremmfr commented 3 years ago

Ok, but the name of argument should be more explicit like evpn_extend_vni. I let you propose an MR.