Vpc_pair_4x initial CRUD changes#30
Open
tamilselvan085 wants to merge 1 commit into
Open
Conversation
sajagana
requested changes
May 8, 2026
Comment on lines
+10
to
+15
| provider "nd" { | ||
| username = "admin" | ||
| password = "Bgl12@123" | ||
| url = "https://10.104.251.111" | ||
| insecure = true | ||
| } |
Collaborator
There was a problem hiding this comment.
Remove the login credentials.
Comment on lines
+72
to
+78
| // func NewInventoryAPI(lock *sync.Mutex, client *nd.Client) *InventoryAPI { | ||
| // papi := new(InventoryAPI) | ||
| // papi.mutex = lock | ||
| // papi.Client = client | ||
| // papi.NDManageAPI = papi | ||
| // return papi | ||
| // } |
Collaborator
There was a problem hiding this comment.
Can you remove if it is not required?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the VPC Pair management module for ND 4.x
Changes:
Added nd_manage_vpc_pair module for VPC pair lifecycle management
Implemented initial CRUD models
UT:
tammurug@TAMMURUG-M-TH74 nd_vpc_pair % pwd
/Users/tammurug/go/src/terraform-provider-nd/examples/resources/nd_vpc_pair
tammurug@TAMMURUG-M-TH74 nd_vpc_pair % terraform apply
╷
│ Warning: Provider development overrides are in effect
│
│ The following provider development overrides are set in the CLI configuration:
│ - ciscodevnet/ndfc in /Users/tammurug/go/bin
│ - cisco/ndfc in /Users/tammurug/go/bin
│ - ciscodevnet/nd in /Users/tammurug/go/bin
│
│ The behavior may therefore not match any released version of the provider and applying changes may cause
│ the state to become incompatible with published releases.
╵
Terraform used the selected providers to generate the following execution plan. Resource actions are
indicated with the following symbols:
Terraform will perform the following actions:
nd_vpc_pair.test_resource_vpc_pair_1 will be created
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
nd_vpc_pair.test_resource_vpc_pair_1: Creating...
nd_vpc_pair.test_resource_vpc_pair_1: Still creating... [00m10s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Still creating... [00m20s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Still creating... [00m30s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Still creating... [00m40s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Creation complete after 45s [id=new_nd4_fabric_vxlan/96E0DGXYPV2]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
tammurug@TAMMURUG-M-TH74 nd_vpc_pair % terraform destroy
╷
│ Warning: Provider development overrides are in effect
│
│ The following provider development overrides are set in the CLI configuration:
│ - ciscodevnet/nd in /Users/tammurug/go/bin
│ - ciscodevnet/ndfc in /Users/tammurug/go/bin
│ - cisco/ndfc in /Users/tammurug/go/bin
│
│ The behavior may therefore not match any released version of the provider and applying changes may cause
│ the state to become incompatible with published releases.
╵
nd_vpc_pair.test_resource_vpc_pair_1: Refreshing state... [id=new_nd4_fabric_vxlan/96E0DGXYPV2]
Terraform used the selected providers to generate the following execution plan. Resource actions are
indicated with the following symbols:
Terraform will perform the following actions:
nd_vpc_pair.test_resource_vpc_pair_1 will be destroyed
}
Plan: 0 to add, 0 to change, 1 to destroy.
Do you really want to destroy all resources?
Terraform will destroy all your managed infrastructure, as shown above.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
nd_vpc_pair.test_resource_vpc_pair_1: Destroying... [id=new_nd4_fabric_vxlan/96E0DGXYPV2]
nd_vpc_pair.test_resource_vpc_pair_1: Still destroying... [id=new_nd4_fabric_vxlan/96E0DGXYPV2, 00m10s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Still destroying... [id=new_nd4_fabric_vxlan/96E0DGXYPV2, 00m20s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Still destroying... [id=new_nd4_fabric_vxlan/96E0DGXYPV2, 00m30s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Still destroying... [id=new_nd4_fabric_vxlan/96E0DGXYPV2, 00m40s elapsed]
nd_vpc_pair.test_resource_vpc_pair_1: Destruction complete after 50s
Destroy complete! Resources: 1 destroyed.
tammurug@TAMMURUG-M-TH74 nd_vpc_pair %