paloalto

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArpData added in v0.5.3

type ArpData struct {
	XMLName xml.Name  `xml:"response"`    // This ensures the root element is correctly recognized
	Status  string    `xml:"status,attr"` // This captures the "status" attribute in the response tag
	Result  ArpResult `xml:"result"`      // This nests the result struct under the result tag
}

Structs to parse xml arp data response.

type ArpEntry added in v0.5.3

type ArpEntry struct {
	Status    string `xml:"status"`
	IP        string `xml:"ip"`
	MAC       string `xml:"mac"`
	TTL       string `xml:"ttl"`
	Interface string `xml:"interface"`
	Port      string `xml:"port"`
}

type ArpResult added in v0.5.3

type ArpResult struct {
	Max     int        `xml:"max"`
	Total   int        `xml:"total"`
	Timeout int        `xml:"timeout"`
	DP      string     `xml:"dp"`
	Entries []ArpEntry `xml:"entries>entry"` // Correct path to entry elements
}

type PaloAltoSource

type PaloAltoSource struct {
	common.Config
	// Paloalto data. Initialized in init functions.
	SystemInfo          map[string]string         // Map storing system information
	VirtualSystems      map[string]vsys.Entry     // VirtualSystem name -> VirtualSystem
	SecurityZones       map[string]zone.Entry     // SecurityZone name -> SecurityZone
	Iface2SecurityZone  map[string]string         // Iface name -> SecurityZone name
	Iface2VirtualRouter map[string]string         // Iface name -> VirtualRouter name
	Ifaces              map[string]eth.Entry      // Iface name -> Iface
	Iface2SubIfaces     map[string][]layer3.Entry // Iface name -> SubIfaces
	VirtualRouters      map[string]router.Entry   // VirtualRouter name -> VirutalRouter
	ArpData             []ArpEntry                // Array of arp entreies

	// NBFirewall representing paloalto firewall created in syncDevice func.
	NBFirewall *objects.Device

	// User defined relation
	HostTenantRelations map[string]string
	HostSiteRelations   map[string]string
	VlanGroupRelations  map[string]string
	VlanTenantRelations map[string]string
}

func (*PaloAltoSource) Init

func (pas *PaloAltoSource) Init() error

func (*PaloAltoSource) Sync

Jump to

Keyboard shortcuts

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