zos icon indicating copy to clipboard operation
zos copied to clipboard

networkd: improve network validation to allow better error message

Open zaibon opened this issue 4 years ago • 0 comments

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
  • ...

zaibon avatar Mar 25 '20 15:03 zaibon