Jamie Hannaford | 89f9af2 | 2014-09-17 12:21:48 +0200 | [diff] [blame] | 1 | package subnets |
Jamie Hannaford | 6363143 | 2014-09-18 11:40:09 +0200 | [diff] [blame] | 2 | |
| 3 | import "fmt" |
| 4 | |
| 5 | func err(str string) error { |
| 6 | return fmt.Errorf("%s", str) |
| 7 | } |
| 8 | |
| 9 | var ( |
Joe Topjian | 2524d11 | 2016-04-07 15:41:39 +0000 | [diff] [blame] | 10 | 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 Hannaford | 6363143 | 2014-09-18 11:40:09 +0200 | [diff] [blame] | 14 | ) |