avirest

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudCache *models.Cloud
View Source
var NetCache map[string]*models.Network

Functions

func AviCloudCachePopulate

func AviCloudCachePopulate(client *clients.AviClient, cloudName string) error

AviCloudCachePopulate queries avi rest api to get cloud data and stores in CloudCache

func AviIPAMCachePopulate

func AviIPAMCachePopulate(client *clients.AviClient, ipamName string) error

AviIPAMCachePopulate queries avi rest api to get IPAM data and stores in IPAMCache

func AviNetCachePopulate

func AviNetCachePopulate(client *clients.AviClient, cloudName string) error

AviNetCachePopulate queries avi rest api to get network data for vcf and stores in NetCaches

func DeleteServiceEngineGroup

func DeleteServiceEngineGroup() error

func DeleteServiceEngines

func DeleteServiceEngines(nextURI ...string) error

func InfraAviClientInstance

func InfraAviClientInstance(c ...*clients.AviClient) *clients.AviClient

func ScheduleQuickSync

func ScheduleQuickSync()

Types

type NetworkingHandler

type NetworkingHandler interface {
	AddNetworkInfoEventHandler(stopCh <-chan struct{})
	SyncLSLRNetwork()
	NewLRLSFullSyncWorker() *utils.FullSyncThread
}

type T1LRNetworking

type T1LRNetworking struct {
}

func (*T1LRNetworking) AddNetworkInfoEventHandler

func (t *T1LRNetworking) AddNetworkInfoEventHandler(stopCh <-chan struct{})

func (*T1LRNetworking) NewLRLSFullSyncWorker

func (t *T1LRNetworking) NewLRLSFullSyncWorker() *utils.FullSyncThread

func (*T1LRNetworking) SyncLSLRNetwork

func (t *T1LRNetworking) SyncLSLRNetwork()

SyncLSLRNetwork fetches all networkinfo CR objects, compares them with the data network configured in the cloud, and updates the cloud if any LS-LR data is missing. It also creates or updates the VCF network with the CIDRs Provided in the Networkinfo objects.

type VPCHandler

type VPCHandler struct {
}

func (*VPCHandler) AddNetworkInfoEventHandler

func (v *VPCHandler) AddNetworkInfoEventHandler(stopCh <-chan struct{})

func (*VPCHandler) NewLRLSFullSyncWorker

func (v *VPCHandler) NewLRLSFullSyncWorker() *utils.FullSyncThread

func (*VPCHandler) SyncLSLRNetwork

func (v *VPCHandler) SyncLSLRNetwork()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL