blob: 0db0a6e60477cf504dea982a6286281e41ab4522 [file] [log] [blame]
Jamie Hannaford89f9af22014-09-17 12:21:48 +02001package subnets
Jamie Hannaford63631432014-09-18 11:40:09 +02002
3import "fmt"
4
5func err(str string) error {
6 return fmt.Errorf("%s", str)
7}
8
9var (
Jamie Hannaford686c4962014-09-23 10:46:20 +020010 errNetworkIDRequired = err("A network ID is required")
11 errCIDRRequired = err("A valid CIDR is required")
12 errInvalidIPType = err("An IP type must either be 4 or 6")
Jamie Hannaford63631432014-09-18 11:40:09 +020013)