Somes issues when we manages ip and network
Fix the issues.
Note I also changed the possibility to set a /128 for ipv6, as it's needed in some cases.