Documentation ¶
Index ¶
- Constants
- func GetDefaultSocketDir() string
- type Config
- type Container
- type DriverConfig
- type DriverSocket
- type ExtCmdArgs
- type GridConfig
- type IBInfobloxDriver
- type IPAMConfig
- type InfobloxDriver
- func (ibDrv *InfobloxDriver) CreateGateway(cidr string, gw net.IP, netviewName string) (string, error)
- func (ibDrv *InfobloxDriver) GetAddress(netviewName string, cidr string, ipAddr string, macAddr string) (*ibclient.FixedAddress, error)
- func (ibDrv *InfobloxDriver) ReleaseAddress(netviewName string, ipAddr string, macAddr string) (ref string, err error)
- func (ibDrv *InfobloxDriver) RequestAddress(netviewName string, cidr string, ipAddr string, macAddr string, name string, ...) (string, error)
- func (ibDrv *InfobloxDriver) RequestNetwork(netconf NetConfig, netviewName string) (network string, err error)
- func (ibDrv *InfobloxDriver) RequestNetworkView(netviewName string) (string, error)
- func (ibDrv *InfobloxDriver) UpdateAddress(fixedAddrRef string, macAddr string, name string, vmID string) (*ibclient.FixedAddress, error)
- type NetConfig
Constants ¶
View Source
const ( HTTP_REQUEST_TIMEOUT = 60 HTTP_POOL_CONNECTIONS = 10 )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultSocketDir ¶
func GetDefaultSocketDir() string
Types ¶
type Config ¶
type Config struct { GridConfig DriverConfig }
func LoadConfig ¶
func LoadConfig() (config *Config)
type Container ¶
type Container struct { NetworkContainer string // CIDR of Network Container NetworkView string // Network view ContainerObj *ibclient.NetworkContainer // contains filtered or unexported fields }
type DriverConfig ¶
type DriverSocket ¶
func NewDriverSocket ¶
func NewDriverSocket(socketDir string, driverName string) *DriverSocket
func (*DriverSocket) GetSocketFile ¶
func (s *DriverSocket) GetSocketFile() string
func (*DriverSocket) SetupSocket ¶
func (s *DriverSocket) SetupSocket() string
type ExtCmdArgs ¶
Extend skel.CmdArgs to include IfMac IfMac is set in the plugin and sent to the daemon
type GridConfig ¶
type IBInfobloxDriver ¶ added in v1.0.0
type IBInfobloxDriver interface { RequestNetworkView(netviewName string) (string, error) RequestAddress(netviewName string, cidr string, ipAddr string, macAddr string, name string, vmID string) (string, error) GetAddress(netviewName string, cidr string, ipAddr string, macAddr string) (*ibclient.FixedAddress, error) UpdateAddress(fixedAddrRef string, macAddr string, name string, vmID string) (*ibclient.FixedAddress, error) ReleaseAddress(netviewName string, ipAddr string, macAddr string) (ref string, err error) RequestNetwork(netconf NetConfig, netviewName string) (network string, err error) CreateGateway(cidr string, gw net.IP, netviewName string) (string, error) }
type IPAMConfig ¶
type IPAMConfig struct { Type string `json:"type"` SocketDir string `json:"socket-dir"` NetworkView string `json:"network-view"` NetworkContainer string `json:"network-container"` PrefixLength uint `json:"prefix-length"` Subnet types.IPNet `json:"subnet"` Gateway net.IP `json:"gateway"` Routes []types.Route `json:"routes"` }
type InfobloxDriver ¶
type InfobloxDriver struct { Containers []Container DefaultNetworkView string DefaultPrefixLen uint // contains filtered or unexported fields }
func NewInfobloxDriver ¶
func NewInfobloxDriver(objMgr ibclient.IBObjectManager, networkView string, networkContainer string, prefixLength uint) *InfobloxDriver
func (*InfobloxDriver) CreateGateway ¶ added in v1.0.0
func (*InfobloxDriver) GetAddress ¶ added in v1.0.0
func (ibDrv *InfobloxDriver) GetAddress(netviewName string, cidr string, ipAddr string, macAddr string) (*ibclient.FixedAddress, error)
func (*InfobloxDriver) ReleaseAddress ¶
func (*InfobloxDriver) RequestAddress ¶
func (*InfobloxDriver) RequestNetwork ¶
func (ibDrv *InfobloxDriver) RequestNetwork(netconf NetConfig, netviewName string) (network string, err error)
func (*InfobloxDriver) RequestNetworkView ¶
func (ibDrv *InfobloxDriver) RequestNetworkView(netviewName string) (string, error)
func (*InfobloxDriver) UpdateAddress ¶ added in v1.0.0
func (ibDrv *InfobloxDriver) UpdateAddress(fixedAddrRef string, macAddr string, name string, vmID string) (*ibclient.FixedAddress, error)
Click to show internal directories.
Click to hide internal directories.