cisco-open / terraform-provider-dcloud

Terraform provider to manage Topologies, Networks, VMs, and Hardware using the Cisco dCloud Topology Builder
Mozilla Public License 2.0
2 stars 2 forks source link

Added NAT feature to support both Ip and Vm nat #28

Closed mohith10 closed 11 months ago

mohith10 commented 11 months ago

Description

This PR adds the IP NAT and VM NAT resources and data source functionality.

  1. Added resource files for VM and IP NAT, titled resource_vm_nat.go and resource_ip_nat.go
  2. Added datasource files for both titled data_source_vm_nat.go and data_source_ip_nat.go
  3. Added documentation for both data sources titled ip_nat_rule.md and vm_nat_rule.md
  4. Added documentation for both resources titled ip_nat_rule.md and vm_nat_rule.md
  5. Added example files for both resource and data sources of VM and IP NAT rules. Appended resource blocks for both Ip and VM Nat in provider.tf as well.
  6. go.mod modified to use v1.0.3 of the TB client.
  7. Used ForceNew attribute for both the resources.

Type of Change

Checklist