Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIfDiff ¶
SetIfDiff UpdateCount a if b is not the same and not ""
Types ¶
type ElementMacAddressTable ¶
type ElementMacAddressTable struct { Element *network.Element VlanMap map[int]*MacAddressTable }
type MacAddressTable ¶
type MacAddressTable struct { VlanId int MacAddresses map[string]*VlanMacAddress // string = mac }
MacAddressTable
type VlanBuddy ¶
type VlanBuddy struct {
// contains filtered or unexported fields
}
type VlanMacAddress ¶
type VlanMacAddress struct { VlanId int Device string Interf string Description string SwitchMode string Mac string Prefixes map[string]bool UpdateCount int }
VlanMacAddress represents a unique mac address
func ParseIosShowMacAddress ¶
func ParseIosShowMacAddress(cmd *CmdPayload) []*VlanMacAddress
ParseIosShowMacAddress parses the show mac address of a Cisco IOS device
func ParseNexusShowMacAddress ¶
func ParseNexusShowMacAddress(cmd *CmdPayload) []*VlanMacAddress
ParseNexusShowMacAddress parses the show mac address of a Cisco Nexus
func ParseShowIpArp ¶
func ParseShowIpArp(cmd *CmdPayload) []*VlanMacAddress
ParseShowIpArp parses the show ip arp of a Cisco device
func (*VlanMacAddress) AddPrefix ¶
func (mac *VlanMacAddress) AddPrefix(prefix string)
AddPrefix adds a prefix
func (*VlanMacAddress) PrefixExists ¶
func (mac *VlanMacAddress) PrefixExists(prefix string) bool
PrefixExists checks whether a prefix exists or not
Click to show internal directories.
Click to hide internal directories.