blob: ca2df729f47e5959d498e57372581b915e81a860 [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 Hannafordd11e20c2014-09-18 12:03:01 +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")
13 ErrCIDRNotUpdatable = err("CIDR attributes cannot be updated")
14 ErrIPVersionNotUpdatable = err("IP Version attributes cannot be updated")
Jamie Hannaford63631432014-09-18 11:40:09 +020015)