vmware / terraform-provider-nsxt

Terraform Provider for VMware NSX
https://registry.terraform.io/providers/vmware/nsxt/
Mozilla Public License 2.0
133 stars 85 forks source link

Please add support Destination Protocol argument for nsxt_policy_gateway_redistribution_config resource #668

Closed scila1996 closed 3 years ago

scila1996 commented 3 years ago

Please add support optional for Destination Protocol. In VMware doc, it is not description about it, however, in NSX-T 3.1, it is necessary if I need to re-route from segment to T-0 -> OSPF/BGP. Please add support for it

image

annakhm commented 3 years ago

Hello, the protocol indicators are called bgp_enabled and ospf_enabled: https://registry.terraform.io/providers/vmware/nsxt/latest/docs/resources/policy_gateway_redistribution_config#bgp_enabled

Hope this helps!

scila1996 commented 3 years ago

Hello, the protocol indicators are called bgp_enabled and ospf_enabled: https://registry.terraform.io/providers/vmware/nsxt/latest/docs/resources/policy_gateway_redistribution_config#bgp_enabled

Hope this helps!

Thank for reply ! But trust me, I was passed VCP-NV and i know what exactly of VMware NSX-T 3.1, bgp_enabled and ospf_enabled optional refer to Common Status of BGP and OSPF, but inside rule argument, we have more than 10 redistribution types, and we need to config some type of them to only one routing protocol such BGP or OSPF.

This below image describe about Common status as you said. But in first comment with above image, it's rule with redistribution types and we need to map several redistribution types with only OSPF or BGP, that why we need to add Destination Protocol to rule argument

image

scila1996 commented 3 years ago

And one more thing. With redistribution rules, we can create maximum of 2 rule corresponding to OSPF rule and BGP rule. But with nsxt_policy_gateway_redistribution_config, it's current only can have one default rule with "list of redistribution types". In my config in NSX-T 3.1, I can add two rule with some redistribution types will belong to Destination Protocol (OSPF/BGP)

image

annakhm commented 3 years ago

Thank you for the clarification @scila1996, I understand the ask now.