[PR] Add validation for domains and paths when editing networks