Documentation ¶
Index ¶
- func GetPortSeqNum(portName string) (int, error)
- type NuageDockerClient
- func (nuagedocker *NuageDockerClient) CheckNetworkList(nuageParams *nuageConfig.NuageNetworkParams) (bool, error)
- func (nuagedocker *NuageDockerClient) GetContainerInspect(uuid string) (types.ContainerJSON, error)
- func (nuagedocker *NuageDockerClient) GetNetworkConnectEvents()
- func (nuagedocker *NuageDockerClient) GetNetworkOptsFromNetworkID(networkID string) (*nuageConfig.NuageNetworkParams, error)
- func (nuagedocker *NuageDockerClient) GetNetworkOptsFromPoolID(poolID string) (*nuageConfig.NuageNetworkParams, error)
- func (nuagedocker *NuageDockerClient) GetOptsAllNetworks() (map[string]*nuageConfig.NuageNetworkParams, error)
- func (nuagedocker *NuageDockerClient) GetRunningContainerList() ([]types.Container, error)
- func (nuagedocker *NuageDockerClient) Start()
- type NuageVRSClient
- func (nvrsc *NuageVRSClient) AddPortToBridge(containerInfo map[string]string) error
- func (nvrsc *NuageVRSClient) CreateEntityEntry(containerInfo map[string]string) error
- func (nvrsc *NuageVRSClient) CreatePortEntry(containerInfo map[string]string) error
- func (nvrsc *NuageVRSClient) DeleteEntityEntry(containerInfo map[string]string) error
- func (nvrsc *NuageVRSClient) DeletePortEntry(containerInfo map[string]string) error
- func (nvrsc *NuageVRSClient) DeleteVethPair(containerInfo map[string]string) error
- func (nvrsc *NuageVRSClient) GetNetworkOptsFromPoolID(poolID string) (*nuageConfig.NuageNetworkParams, error)
- func (nvrsc *NuageVRSClient) RemoveVethPortFromVRS(port string) error
- func (nvrsc *NuageVRSClient) Start()
- type NuageVSDClient
- func (nuagevsd *NuageVSDClient) AddVSDObjects(vsdReq *nuageConfig.NuageNetworkParams) error
- func (nuagevsd *NuageVSDClient) CreateVSDContainer(vsdReq nuageConfig.NuageEventMetadata) (string, error)
- func (nuagevsd *NuageVSDClient) DeleteVSDContainer(vsdReq nuageConfig.NuageEventMetadata) error
- func (nuagevsd *NuageVSDClient) DeleteVSDObjects(vsdReq *nuageConfig.NuageNetworkParams) error
- func (nuagevsd *NuageVSDClient) FetchDomainInfo(enterprise *vspk.Enterprise, domainName string) (*vspk.Domain, error)
- func (nuagevsd *NuageVSDClient) FetchEnterpriseInfo(enterpriseName string) (*vspk.Enterprise, error)
- func (nuagevsd *NuageVSDClient) FetchSubnetInfo(domain *vspk.Domain, subnetName string) (*vspk.Subnet, error)
- func (nuagevsd *NuageVSDClient) GetContainerInfo(vsdReq nuageConfig.NuageEventMetadata) ([]string, error)
- func (nuagevsd *NuageVSDClient) RefreshVSDSession() error
- func (nuagevsd *NuageVSDClient) Start()
- func (nuagevsd *NuageVSDClient) UpdateContainerNameUUID(vsdReq nuageConfig.NuageEventMetadata) error
- func (nuagevsd *NuageVSDClient) UpdateVPortPolicyGroup(vsdReq nuageConfig.NuageEventMetadata) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPortSeqNum ¶
GetPortSeqNum takes a uuid and finds the post fix of the interface which is the sequence number
Types ¶
type NuageDockerClient ¶
type NuageDockerClient struct {
// contains filtered or unexported fields
}
NuageDockerClient structure holds docker client
func NewNuageDockerClient ¶
func NewNuageDockerClient(config *nuageConfig.NuageLibNetworkConfig, channels *nuageApi.NuageLibNetworkChannels) (*NuageDockerClient, error)
NewNuageDockerClient creates a new docker client
func (*NuageDockerClient) CheckNetworkList ¶
func (nuagedocker *NuageDockerClient) CheckNetworkList(nuageParams *nuageConfig.NuageNetworkParams) (bool, error)
CheckNetworkList checks if the given params matches existing network params
func (*NuageDockerClient) GetContainerInspect ¶
func (nuagedocker *NuageDockerClient) GetContainerInspect(uuid string) (types.ContainerJSON, error)
GetContainerInspect returns the container inspect output of a container
func (*NuageDockerClient) GetNetworkConnectEvents ¶
func (nuagedocker *NuageDockerClient) GetNetworkConnectEvents()
GetNetworkConnectEvents listens for event when a container is connected to "nuage" network
func (*NuageDockerClient) GetNetworkOptsFromNetworkID ¶
func (nuagedocker *NuageDockerClient) GetNetworkOptsFromNetworkID(networkID string) (*nuageConfig.NuageNetworkParams, error)
GetNetworkOptsFromNetworkID fetches a network from docker
func (*NuageDockerClient) GetNetworkOptsFromPoolID ¶
func (nuagedocker *NuageDockerClient) GetNetworkOptsFromPoolID(poolID string) (*nuageConfig.NuageNetworkParams, error)
GetNetworkOptsFromPoolID fetches network options for a given docker network
func (*NuageDockerClient) GetOptsAllNetworks ¶
func (nuagedocker *NuageDockerClient) GetOptsAllNetworks() (map[string]*nuageConfig.NuageNetworkParams, error)
func (*NuageDockerClient) GetRunningContainerList ¶
func (nuagedocker *NuageDockerClient) GetRunningContainerList() ([]types.Container, error)
GetRunningContainerList fetches the list of running containers from docker
func (*NuageDockerClient) Start ¶
func (nuagedocker *NuageDockerClient) Start()
Start listen for events on docker channel
type NuageVRSClient ¶
type NuageVRSClient struct {
// contains filtered or unexported fields
}
NuageVRSClient contains the relavent data to hold VRS client
func NewNuageVRSClient ¶
func NewNuageVRSClient(config *nuageConfig.NuageLibNetworkConfig, channels *nuageApi.NuageLibNetworkChannels) (*NuageVRSClient, error)
NewNuageVRSClient factory method of NuageVRSClient structure
func (*NuageVRSClient) AddPortToBridge ¶
func (nvrsc *NuageVRSClient) AddPortToBridge(containerInfo map[string]string) error
AddPortToBridge adds entity port to the bridge
func (*NuageVRSClient) CreateEntityEntry ¶
func (nvrsc *NuageVRSClient) CreateEntityEntry(containerInfo map[string]string) error
CreateEntityEntry creates a new entry in Nuage_VM_Table
func (*NuageVRSClient) CreatePortEntry ¶
func (nvrsc *NuageVRSClient) CreatePortEntry(containerInfo map[string]string) error
CreatePortEntry creates a new entry in Nuage_Port_Table
func (*NuageVRSClient) DeleteEntityEntry ¶
func (nvrsc *NuageVRSClient) DeleteEntityEntry(containerInfo map[string]string) error
DeleteEntityEntry deletes an entry from Nuage_VM_Table
func (*NuageVRSClient) DeletePortEntry ¶
func (nvrsc *NuageVRSClient) DeletePortEntry(containerInfo map[string]string) error
DeletePortEntry deletes an entry from Nuage_Port_Table
func (*NuageVRSClient) DeleteVethPair ¶
func (nvrsc *NuageVRSClient) DeleteVethPair(containerInfo map[string]string) error
DeleteVethPair deletes a veth pair from host
func (*NuageVRSClient) GetNetworkOptsFromPoolID ¶
func (nvrsc *NuageVRSClient) GetNetworkOptsFromPoolID(poolID string) (*nuageConfig.NuageNetworkParams, error)
func (*NuageVRSClient) RemoveVethPortFromVRS ¶
func (nvrsc *NuageVRSClient) RemoveVethPortFromVRS(port string) error
RemoveVethPortFromVRS will help delete veth ports from VRS alubr0
func (*NuageVRSClient) Start ¶
func (nvrsc *NuageVRSClient) Start()
Start listens for events on VRS Channel
type NuageVSDClient ¶
NuageVSDClient contains necessary information for a VSD session
func NewNuageVSDClient ¶
func NewNuageVSDClient(config *nuageConfig.NuageLibNetworkConfig, channels *nuageApi.NuageLibNetworkChannels) (*NuageVSDClient, error)
NewNuageVSDClient factory method for VSD client
func (*NuageVSDClient) AddVSDObjects ¶
func (nuagevsd *NuageVSDClient) AddVSDObjects(vsdReq *nuageConfig.NuageNetworkParams) error
AddVSDObjects add the vsd objects for given organization, domain, network to cache and returns vsd subnet id
func (*NuageVSDClient) CreateVSDContainer ¶
func (nuagevsd *NuageVSDClient) CreateVSDContainer(vsdReq nuageConfig.NuageEventMetadata) (string, error)
CreateVSDContainer creates new container on VSD under the given subnet
func (*NuageVSDClient) DeleteVSDContainer ¶
func (nuagevsd *NuageVSDClient) DeleteVSDContainer(vsdReq nuageConfig.NuageEventMetadata) error
DeleteVSDContainer deletes a VSD container with ip in VSD subnet wit id vsdSubnetID
func (*NuageVSDClient) DeleteVSDObjects ¶
func (nuagevsd *NuageVSDClient) DeleteVSDObjects(vsdReq *nuageConfig.NuageNetworkParams) error
DeleteVSDObjects deletes the vsd objects for give organization
func (*NuageVSDClient) FetchDomainInfo ¶
func (nuagevsd *NuageVSDClient) FetchDomainInfo(enterprise *vspk.Enterprise, domainName string) (*vspk.Domain, error)
FetchDomainInfo fetches domain information from VSD
func (*NuageVSDClient) FetchEnterpriseInfo ¶
func (nuagevsd *NuageVSDClient) FetchEnterpriseInfo(enterpriseName string) (*vspk.Enterprise, error)
FetchEnterpriseInfo fetches enterprise information from VSD
func (*NuageVSDClient) FetchSubnetInfo ¶
func (nuagevsd *NuageVSDClient) FetchSubnetInfo(domain *vspk.Domain, subnetName string) (*vspk.Subnet, error)
FetchSubnetInfo fetches enterprise information from VSD
func (*NuageVSDClient) GetContainerInfo ¶
func (nuagevsd *NuageVSDClient) GetContainerInfo(vsdReq nuageConfig.NuageEventMetadata) ([]string, error)
GetContainerInfo returns the MAC address used to create container with ip in subnet with ID vsdSubnetID
func (*NuageVSDClient) RefreshVSDSession ¶
func (nuagevsd *NuageVSDClient) RefreshVSDSession() error
RefreshVSDSession generated new auth token for VSD session
func (*NuageVSDClient) Start ¶
func (nuagevsd *NuageVSDClient) Start()
Start listens for events on VSD channel
func (*NuageVSDClient) UpdateContainerNameUUID ¶
func (nuagevsd *NuageVSDClient) UpdateContainerNameUUID(vsdReq nuageConfig.NuageEventMetadata) error
UpdateContainerNameUUID updates the name and uuid of container on VSD
func (*NuageVSDClient) UpdateVPortPolicyGroup ¶
func (nuagevsd *NuageVSDClient) UpdateVPortPolicyGroup(vsdReq nuageConfig.NuageEventMetadata) error
UpdateVPortPolicyGroup updates the policy group information for vport with given ip and PG