Does anyone know what validation or parsing logic is applied to the IP address field on the "Edit" page of an element?
I’m working on a solution where users can define IP addresses for multiple devices, and I’d like to follow the same rules used for elements.
In particular, for IPv6, it seems the field accepts full addresses, compressed formats, and even IPv4-embedded variants. Is there any official documentation that explains these rules?
Thanks in advance!
Miguel Obregon [SLC] [DevOps Catalyst] Posted new comment 15 hours ago
Hi Tomas,
Small question. Is your solution using IDP in the background to provision elements?
If this is the case, IDP should perform these checks and return an error if a hostname/IP address is not valid.
I believe implementing the same rules in your solution will be redundant and create some dependency. Let's say that in the future IDP implements a new rule, your solution will also need to implement the new rule.
If you are not using IDP, I will suggest to have a look at the provisioning feature.