Hello Xtophe38,
we accidentally defined gateway IPs for some isolated networks that in reality don’t have Gateways on purpose. Now I want to remove these IPs from the subnets in iTop. When I try to clear the value of “Gateway IP” form a IPv4Subnet, I get the following error message:
Error: Unexpected value for attribute 'Address' (ip) : Null not allowed, IP does not belong to subnet! […]
The field “Gateway IP” now is empty as desired but when I try to save any other change like changing the description this error message pops up again.
Global IP Settings are:
Reserve Subnet, Gateway and Broadcast IPs at Subnet Creation: Yes
IPv4 Gateway IP format: Free allocation
I can create new subnets without filling in a gateway IP. But after entering a gateway IP, I can’t remove it properly.
Thank you again for providing this extension!
iTop Version 3.1.1-1-12561
PHP: 7.4.33
InstalledExtension/teemip-cable-mgmt/1.3.0
InstalledExtension/teemip-core-ip-mgmt/3.2.0
Hello,
I managed to reproduce and correct your issue. The fix will be visible in the next revision of the extension but you can already get it on GitHub under this commit.
Thanks for your headsup,
Christophe
PS: I advise you to upgrade your php to PHP 8.1. This will allow you to migrate to iTop 3.2.