dnac

package
v1.11.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnacSource

type DnacSource struct {
	common.Config

	// Dnac fetched data. Initialized in init functions.
	Sites                           map[string]dnac.ResponseSitesGetSiteResponse                // SiteID -> Site
	Devices                         map[string]dnac.ResponseDevicesGetDeviceListResponse        // DeviceID -> Device
	Interfaces                      map[string]dnac.ResponseDevicesGetAllInterfacesResponse     // InterfaceID -> Interface
	Vlans                           map[int]dnac.ResponseDevicesGetDeviceInterfaceVLANsResponse // VlanID -> Vlan
	WirelessLANInterfaceName2VlanID map[string]int                                              // InterfaceName -> VlanID
	SSID2WirelessProfileDetails     map[string]dnac.ResponseItemWirelessGetWirelessProfileProfileDetailsSSIDDetails
	// SSID2WlanGroupName SSID -> WirelessLANGroup name
	SSID2WlanGroupName map[string]string
	// SSID2SecurityDetails WirelessLANName -> SSIDDetails
	SSID2SecurityDetails map[string]dnac.ResponseItemWirelessGetEnterpriseSSIDSSIDDetails

	// Relations between dnac data. Initialized in init functions.
	Site2Parent           map[string]string          // Site ID -> Parent Site ID
	Site2Devices          map[string]map[string]bool // Site ID - > set of device IDs
	Device2Site           map[string]string          // Device ID -> Site ID
	DeviceID2InterfaceIDs map[string][]string        // DeviceID -> []InterfaceID

	// Netbox related data for easier access. Initialized in sync functions.
	// DeviceID2isMissingPrimaryIP stores devices without primary IP. See ds.syncMissingDevicePrimaryIPs
	DeviceID2isMissingPrimaryIP sync.Map
	// VID2nbVlan: VlanID -> nbVlan
	VID2nbVlan sync.Map
	// SiteID2nbSite: SiteID -> nbSite
	SiteID2nbSite           sync.Map
	DeviceID2nbDevice       sync.Map // DeviceID -> nbDevice
	InterfaceID2nbInterface sync.Map // InterfaceID -> nbInterface
}

func (*DnacSource) Init

func (ds *DnacSource) Init() error

func (*DnacSource) Sync

func (ds *DnacSource) Sync(nbi *inventory.NetboxInventory) error

Jump to

Keyboard shortcuts

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