2022-07-11 20:11:58 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
pluginName = "azure-ipam"
|
|
|
|
cnsBaseURL = "" // fallback to default http://localhost:10090
|
|
|
|
cnsReqTimeout = 15 * time.Second
|
|
|
|
)
|
|
|
|
|
|
|
|
// plugin specific error codes
|
|
|
|
// https://www.cni.dev/docs/spec/#error
|
|
|
|
const (
|
2023-10-18 02:41:00 +03:00
|
|
|
ErrCreateIPConfigRequest uint = iota + 100
|
|
|
|
ErrCreateIPConfigsRequest uint = iota + 200
|
2022-07-11 20:11:58 +03:00
|
|
|
ErrRequestIPConfigFromCNS
|
|
|
|
ErrProcessIPConfigResponse
|
|
|
|
)
|