The problem can be caused by PUT request data for public network:
{"network_size":256,"name":"public","ip_ranges":[["172.16.0.2","172.16.0.126"]], "amount":1, "id":2, "netmask":"255.255.255.0", "cluster_id":1, "vlan_start":null, "cidr":"172.16.10.0/24", "gateway":"172.16.10.1"}
CIDR and gateway are changed from UI, but IP ranges not.
My proposal is not to sent on UI fields which will not used by UI (ip_ranges network attribute in this example). And manage ip_ranges/cidr calculation on backend part.
The problem can be caused by PUT request data for public network: size":256, "name": "public" ,"ip_ranges" :[["172. 16.0.2" ,"172.16. 0.126"] ], "amount":1, "id":2, "netmask" :"255.255. 255.0", "cluster_id":1, "vlan_start":null, "cidr": "172.16. 10.0/24" , "gateway" :"172.16. 10.1"}
{"network_
CIDR and gateway are changed from UI, but IP ranges not.
My proposal is not to sent on UI fields which will not used by UI (ip_ranges network attribute in this example). And manage ip_ranges/cidr calculation on backend part.