#how to create ipspaces

1 messages · Page 1 of 1 (latest)

vagrant agate
#

I new to the netapp provider (not to terraform) and i'm trying to move our ansible items to terraform.
I'm currently stuck on the part on how to create an ipspace, we use this alot because we have a multi-tenant environment

If anybody can point me in the direction on how to create ipspaces with terraform

digital epoch
vagrant agate
#

thank you for you're response
I tried the svm resource, but that just gave me an error:
│ error on POST svm/svms: REST reported error restclient.RestError{Code:"2", Message:"failed to set field "ipspace.name" to "test-ipspace"", Target:"ipspace.name"}, statusCode: 400, statusCode 400

so than I think i just need to make a feature request 🙂

digital epoch
#

resource "netapp-ontap_svm_resource" "example_svm" {
cx_profile_name = "PROFILE" # Replace with your cluster profile
name = "SVM"
ipspace = "IPSPACE" # The IPspace to create
comment = "SVM test"
snapshot_policy = "default-1weekly"
language = "en_us.utf_8"
aggregates = ["aggr1"]
max_volumes = "100"
}

doing something like that?

Or

resource "netapp-ontap_networking_ip_interface_resource" "ip_int" {
cx_profile_name = "your_cluster_profile_name"
name = "data_int"
svm_name = "SVM"
ip = {
address = "172.20.19.100"
netmask = 24
}
location = {
home_port = "e0a"
home_node = "node1"
}
ipspace = "new_ipspace"
}

vagrant agate
#

resource "netapp-ontap_svm_resource" "example_svm" {
cx_profile_name = "PROFILE" # Replace with your cluster profile
name = "SVM"
ipspace = "IPSPACE" # The IPspace to create
comment = "SVM test"
snapshot_policy = "default-1weekly"
language = "en_us.utf_8"
aggregates = ["aggr1"]
max_volumes = "100"
}

I tried this and it gave me the above error.
the interface resource won't work because it needs an svm in which i already need to define a ipspace.

I think this needs a feature request, I thought I would ask it here first for the case if I missed something.

thanks for your help!