Menu

#154 Error when removing gateway IP from subnet

3.2.0 Standalone
closed
Xtophe38
None
2024-10-03
2024-10-01
Anonymous
No

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

Discussion

  • Xtophe38

    Xtophe38 - 2024-10-01

    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.

     
  • Xtophe38

    Xtophe38 - 2024-10-01
    • assigned_to: Xtophe38
     
  • Xtophe38

    Xtophe38 - 2024-10-01
    • Milestone: 3.1.3 Standalone --> 3.2.0 Standalone
     
  • Xtophe38

    Xtophe38 - 2024-10-03
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB