#how to create ipspaces
1 messages · Page 1 of 1 (latest)
not sure you can directly create an ipspace.
You can identify them via a couple of different things though, like SVM and IP int creation.
https://registry.terraform.io/providers/NetApp/netapp-ontap/latest/docs/resources/svm
ipspace = "your_new_ipspace_name" # The IPspace to create
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 🙂
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"
}
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!