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 ( |
Jamie Hannaford | d11e20c | 2014-09-18 12:03:01 +0200 | [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 | ErrCIDRNotUpdatable = err("CIDR attributes cannot be updated") |
| 14 | ErrIPVersionNotUpdatable = err("IP Version attributes cannot be updated") |
Jamie Hannaford | 6363143 | 2014-09-18 11:40:09 +0200 | [diff] [blame] | 15 | ) |