Skip to content

Commit

Permalink
Merge pull request #195 from terraform-providers/group_ipset
Browse files Browse the repository at this point in the history
Support IPSet type in ns group membership criteria
  • Loading branch information
annakhm authored Oct 23, 2019
2 parents bd8d0a1 + 4610e17 commit 7b0f3c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nsxt/resource_nsxt_ip_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func resourceNsxtIPSetDelete(d *schema.ResourceData, m interface{}) error {
}

localVarOptionals := make(map[string]interface{})
localVarOptionals["force"] = true
resp, err := nsxClient.GroupingObjectsApi.DeleteIPSet(nsxClient.Context, id, localVarOptionals)
if err != nil {
return fmt.Errorf("Error during IpSet delete: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ns_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

var nsGroupTargetTypeValues = []string{"NSGroup", "IPSet", "LogicalPort", "LogicalSwitch", "MACSet"}
var nsGroupMembershipCriteriaTargetTypeValues = []string{"LogicalPort", "LogicalSwitch", "VirtualMachine"}
var nsGroupMembershipCriteriaTargetTypeValues = []string{"LogicalPort", "LogicalSwitch", "VirtualMachine", "IPSet"}
var nsGroupTagOperationValues = []string{"EQUALS"}

func resourceNsxtNsGroup() *schema.Resource {
Expand Down

0 comments on commit 7b0f3c1

Please sign in to comment.