zos
zos copied to clipboard
networkd: improve network validation to allow better error message
Let's try to improve https://github.com/threefoldtech/zos/blob/6169ccb7fd0092f3045d1e0c82810181467f847b/pkg/network/networker.go#L142 So we can catch most common mistake made by users when defining networks and creating containers.
We should have proper error message for cases like:
- container creation with an ip that is not part of the network resource of the node
- conflicting network resource ip range
- ...