Open ihadi581 opened 2 months ago
We don't exactly copy the GUI in all terraform resources. In this case if you want to specify a value and not use a generated resource, you will need to remove the resource generator from the resource specification.
can make allocated_from
optional mode ?
The code is not written that way. We would have to rewrite the code. There should be no reason to specify allocated from if you want to manually set the resource.
@bwJuniper I thought we tested this, and found that when specifying both an "allocated_from" and an "override" value, that the value was not pulled from the "allocated_from" ... thing.
But I've just tested it (with an integer pool), and found that the integer pool had one fewer integers after I created the resource, so long as the "override" value was within range.
We may need to revisit these experiments.
Certainly can re-visit. We made simple choices to get the functionality out. We can make it more complex. I like to keep things simple but if there is a use case/reason then I am up for it.
if using apstra 0.68.2-0.68.3, this issue not facing but after upgrade with new version provider issue facing.
this tf file
output :
which we expect we can add manual integer value of allocated data, because apstra UI can use this method, to adopt flexibility