2017-02-12 13:03:39 +03:00
|
|
|
// Copyright 2017 Microsoft. All rights reserved.
|
|
|
|
// MIT License
|
2016-04-28 04:26:25 +03:00
|
|
|
|
|
|
|
package ipam
|
|
|
|
|
2016-05-09 14:31:08 +03:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2016-11-29 04:13:34 +03:00
|
|
|
// Error responses returned by AddressManager.
|
2016-05-09 14:31:08 +03:00
|
|
|
errInvalidAddressSpace = fmt.Errorf("Invalid address space")
|
|
|
|
errInvalidPoolId = fmt.Errorf("Invalid address pool")
|
|
|
|
errInvalidAddress = fmt.Errorf("Invalid address")
|
|
|
|
errInvalidScope = fmt.Errorf("Invalid scope")
|
|
|
|
errInvalidConfiguration = fmt.Errorf("Invalid configuration")
|
|
|
|
errAddressPoolExists = fmt.Errorf("Address pool already exists")
|
|
|
|
errAddressPoolNotFound = fmt.Errorf("Address pool not found")
|
2016-09-26 21:06:28 +03:00
|
|
|
errAddressPoolInUse = fmt.Errorf("Address pool already in use")
|
|
|
|
errAddressPoolNotInUse = fmt.Errorf("Address pool not in use")
|
2016-05-09 14:31:08 +03:00
|
|
|
errNoAvailableAddressPools = fmt.Errorf("No available address pools")
|
|
|
|
errAddressExists = fmt.Errorf("Address already exists")
|
|
|
|
errAddressNotFound = fmt.Errorf("Address not found")
|
|
|
|
errAddressInUse = fmt.Errorf("Address already in use")
|
|
|
|
errAddressNotInUse = fmt.Errorf("Address not in use")
|
|
|
|
errNoAvailableAddresses = fmt.Errorf("No available addresses")
|
2017-01-20 03:20:35 +03:00
|
|
|
|
|
|
|
// Options used by AddressManager.
|
2017-05-05 05:59:21 +03:00
|
|
|
OptInterfaceName = "azure.interface.name"
|
2017-06-07 22:07:53 +03:00
|
|
|
OptAddressID = "azure.address.id"
|
2017-05-05 05:59:21 +03:00
|
|
|
OptAddressType = "azure.address.type"
|
|
|
|
OptAddressTypeGateway = "gateway"
|
2016-05-09 14:31:08 +03:00
|
|
|
)
|