blob: d2f7b46e3c898a483700113a49c17963e37d8d14 [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 (
Joe Topjian2524d112016-04-07 15:41:39 +000010 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")
13 errInvalidGatewayConfig = err("Both disabling the gateway and specifying a gateway is not allowed")
Jamie Hannaford63631432014-09-18 11:40:09 +020014)