fmc

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FMCSource

type FMCSource struct {
	common.Config

	// FMC data. Initialized in init functions.
	// Domains is a map of domain UUIDs to Domain objects.
	Domains map[string]client.Domain
	// Devices is a map of device IDs to DeviceInfo objects.
	Devices map[string]*client.DeviceInfo
	// DevicePhysicalIfaces is a map of device IDs to a slice of PhysicalInterfaceInfo objects.
	DevicePhysicalIfaces map[string][]*client.PhysicalInterfaceInfo
	// DeviceVlanIfaces is a map of device IDs to a slice of VLANInterfaceInfo objects.
	DeviceVlanIfaces map[string][]*client.VLANInterfaceInfo
	// DeviceEtherChannelIfaces is a map of device IDs to a slice of EtherChannelInterfaceInfo objects.
	DeviceEtherChannelIfaces map[string][]*client.EtherChannelInterfaceInfo
	// DeviceSubIfaces is a map of device IDs to a slice of SubInterfaceInfo objects.
	DeviceSubIfaces map[string][]*client.SubInterfaceInfo

	// Netbox devices representing firewalls.
	NBDevices map[string]*objects.Device
	// NBInterfaces represents all fmc interfaces that have been synced to netbox.
	// It is a map of interface name to interface, so we can find parents of sub interfaces.
	Name2NBInterface map[string]*objects.Interface
}

FMCSource represents Cisco Firewall Management Center.

func (*FMCSource) Init

func (fmcs *FMCSource) Init() error

func (*FMCSource) Sync

func (fmcs *FMCSource) Sync(nbi *inventory.NetboxInventory) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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