Versions in this module Expand all Collapse all v0 v0.3.0 Feb 21, 2018 v0.2.0 Dec 19, 2016 v0.1.0 Nov 11, 2015 Changes in this version + type AbstractBaseEntity struct + func (b *AbstractBaseEntity) CommandBuilder(cmd string, value string, def bool, enable bool) string + func (b *AbstractBaseEntity) Config() string + func (b *AbstractBaseEntity) Configure(commands ...string) bool + func (b *AbstractBaseEntity) ConfigureInterface(name string, commands ...string) bool + func (b *AbstractBaseEntity) Error() error + func (b *AbstractBaseEntity) GetBlock(parent string) (string, error) + type AclConfig struct + func (a AclConfig) Entries() AclEntryMap + func (a AclConfig) Name() string + func (a AclConfig) Type() string + type AclEntity struct + func Acl(node *goeapi.Node) *AclEntity + func (a *AclEntity) AddEntry(name string, action string, addr string, prefixlen string, log bool) bool + func (a *AclEntity) Create(name string) bool + func (a *AclEntity) Default(name string) bool + func (a *AclEntity) Delete(name string) bool + func (a *AclEntity) Get(name string) (*AclConfig, error) + func (a *AclEntity) GetAll() map[string]*AclConfig + func (a *AclEntity) GetSection(name string) string + func (a *AclEntity) RemoveEntry(name string, seqno int) bool + func (a *AclEntity) UpdateEntry(name string, seqno string, action string, addr string, prefixlen string, ...) bool + type AclEntry map[string]string + func (a AclEntry) Action() string + func (a AclEntry) Log() string + func (a AclEntry) SrcAddr() string + func (a AclEntry) SrcLen() string + type AclEntryMap map[string]AclEntry + type BGPEntity struct + func Bgp(node *goeapi.Node) *BGPEntity + func (b *BGPEntity) AddNetwork(prefix string, maskLen string) bool + func (b *BGPEntity) AddNetworkWithRouteMap(prefix string, maskLen string, routeMap string) bool + func (b *BGPEntity) ConfigureBgp(cmd string) bool + func (b *BGPEntity) Create(bgpAS int) bool + func (b *BGPEntity) Default() bool + func (b *BGPEntity) Delete() bool + func (b *BGPEntity) Get() *BgpConfig + func (b *BGPEntity) GetSection() string + func (b *BGPEntity) Neighbors() *BgpNeighborsEntity + func (b *BGPEntity) RemoveNetwork(prefix string, maskLen string) bool + func (b *BGPEntity) RemoveNetworkWithRouteMap(prefix string, maskLen string, routeMap string) bool + func (b *BGPEntity) SetMaximumPaths(maxPath int) bool + func (b *BGPEntity) SetMaximumPathsDefault() bool + func (b *BGPEntity) SetMaximumPathsWithEcmp(maxPath int, maxEcmp int) bool + func (b *BGPEntity) SetRouterID(value string) bool + func (b *BGPEntity) SetRouterIDDefault() bool + func (b *BGPEntity) SetShutdown(enable bool) bool + func (b *BGPEntity) SetShutdownDefault() bool + type BaseInterfaceEntity struct + func Interface(node *goeapi.Node) *BaseInterfaceEntity + func (i *BaseInterfaceEntity) Create(name string) bool + func (i *BaseInterfaceEntity) Default(name string) bool + func (i *BaseInterfaceEntity) Delete(name string) bool + func (i *BaseInterfaceEntity) Get(name string) InterfaceConfig + func (i *BaseInterfaceEntity) SetDescription(name string, value string) bool + func (i *BaseInterfaceEntity) SetDescriptionDefault(name string) bool + func (i *BaseInterfaceEntity) SetShutdown(name string, shut bool) bool + func (i *BaseInterfaceEntity) SetShutdownDefault(name string) bool + type BgpConfig struct + func (b *BgpConfig) BgpAs() string + func (b *BgpConfig) MaximumEcmpPaths() string + func (b *BgpConfig) MaximumPaths() string + func (b *BgpConfig) Networks() []BgpNetworkEntry + func (b *BgpConfig) RouterID() string + func (b *BgpConfig) Shutdown() string + type BgpNeighborCollection map[string]BgpNeighborConfig + type BgpNeighborConfig map[string]string + type BgpNeighborsEntity struct + func BgpNeighbors(node *goeapi.Node) *BgpNeighborsEntity + func (b *BgpNeighborsEntity) CommandBuilder(name string, cmd string, value string, def bool, shut bool) string + func (b *BgpNeighborsEntity) Configure(cmd string) bool + func (b *BgpNeighborsEntity) Create(name string) bool + func (b *BgpNeighborsEntity) Delete(name string) bool + func (b *BgpNeighborsEntity) Get(name string) BgpNeighborConfig + func (b *BgpNeighborsEntity) GetAll() BgpNeighborCollection + func (b *BgpNeighborsEntity) SetDescription(name string, value string) bool + func (b *BgpNeighborsEntity) SetDescriptionDefault(name string) bool + func (b *BgpNeighborsEntity) SetNextHopSelf(name string, enabled bool) bool + func (b *BgpNeighborsEntity) SetNextHopSelfDefault(name string) bool + func (b *BgpNeighborsEntity) SetPeerGroup(name string, value string) bool + func (b *BgpNeighborsEntity) SetPeerGroupDefault(name string) bool + func (b *BgpNeighborsEntity) SetRemoteAS(name string, value string) bool + func (b *BgpNeighborsEntity) SetRemoteASDefault(name string) bool + func (b *BgpNeighborsEntity) SetRouteMapIn(name string, value string) bool + func (b *BgpNeighborsEntity) SetRouteMapInDefault(name string) bool + func (b *BgpNeighborsEntity) SetRouteMapOut(name string, value string) bool + func (b *BgpNeighborsEntity) SetRouteMapOutDefault(name string) bool + func (b *BgpNeighborsEntity) SetSendCommunity(name string, enable bool) bool + func (b *BgpNeighborsEntity) SetSendCommunityDefault(name string) bool + func (b *BgpNeighborsEntity) SetShutdown(name string, shut bool) bool + func (b *BgpNeighborsEntity) SetShutdownDefault(name string) bool + type BgpNetworkEntry map[string]string + func (b BgpNetworkEntry) MaskLen() string + func (b BgpNetworkEntry) Prefix() string + func (b BgpNetworkEntry) RouteMap() string + type EthInterfaceCounters struct + CounterRefreshTime float64 + InBroadcastPkts int + InDiscards int + InMulticastPkts int + InOctets int + InUcastPkts int + InputErrorsDetail PhysicalInputErrors + LastClear float64 + LinkStatusChanges int + OutBroadcastPkts int + OutDiscards int + OutErrorsDetail PhysicalOutputErrors + OutMulticastPkts int + OutOctets int + OutUcastPkts int + TotalInErrors int + TotalOutErrors int + type EthernetInterfaceEntity struct + func EthernetInterface(node *goeapi.Node) *EthernetInterfaceEntity + func (e *EthernetInterfaceEntity) Create(name string) bool + func (e *EthernetInterfaceEntity) Delete(name string) bool + func (e *EthernetInterfaceEntity) DisableFlowcontrolReceive(name string) bool + func (e *EthernetInterfaceEntity) DisableFlowcontrolSend(name string) bool + func (e *EthernetInterfaceEntity) Get(name string) InterfaceConfig + func (e *EthernetInterfaceEntity) SetFlowcontrolReceive(name string, value bool) bool + func (e *EthernetInterfaceEntity) SetFlowcontrolSend(name string, value bool) bool + func (e *EthernetInterfaceEntity) SetSflow(name string, value bool) bool + func (e *EthernetInterfaceEntity) SetSflowDefault(name string) bool + type GlobalMlagConfig map[string]string + type IPAddress struct + Address string + MaskLen int + type IPInterfaceConfig map[string]string + func (i IPInterfaceConfig) Address() string + func (i IPInterfaceConfig) Mtu() string + func (i IPInterfaceConfig) Name() string + type IPInterfaceConfigMap map[string]IPInterfaceConfig + type IPInterfaceEntity struct + func IPInterface(node *goeapi.Node) *IPInterfaceEntity + func (i *IPInterfaceEntity) Create(name string) bool + func (i *IPInterfaceEntity) Delete(name string) bool + func (i *IPInterfaceEntity) Get(name string) (IPInterfaceConfig, error) + func (i *IPInterfaceEntity) GetAll() IPInterfaceConfigMap + func (i *IPInterfaceEntity) GetEthInterfaces() []string + func (i *IPInterfaceEntity) SetAddress(name string, value string) bool + func (i *IPInterfaceEntity) SetAddressDefault(name string) bool + func (i *IPInterfaceEntity) SetMtu(name string, value int) bool + func (i *IPInterfaceEntity) SetMtuDefault(name string) bool + type InterfaceAddress struct + BroadcastAddress string + PrimaryIP IPAddress + SecondaryIPOrderedList []IPAddress + SecondaryIPs interface{} + VirtualIP IPAddress + type InterfaceConfig map[string]string + type InterfaceMlagConfig map[string]string + type InterfaceStatistics struct + InBitsRate float64 + InPktsRate float64 + OutBitsRate float64 + OutPktsRate float64 + UpdateInterval float64 + type MlagConfig struct + func (m MlagConfig) DomainID() string + func (m MlagConfig) InterfaceConfig(intf string) string + func (m MlagConfig) LocalInterface() string + func (m MlagConfig) PeerAddress() string + func (m MlagConfig) PeerLink() string + func (m MlagConfig) Shutdown() string + type MlagEntity struct + func Mlag(node *goeapi.Node) *MlagEntity + func (m *MlagEntity) ConfigureMlag(cmd string, value string, def bool, enable bool) bool + func (m *MlagEntity) Get() *MlagConfig + func (m *MlagEntity) GetSection() string + func (m *MlagEntity) SetDomainID(value string) bool + func (m *MlagEntity) SetDomainIDDefault() bool + func (m *MlagEntity) SetLocalInterface(value string) bool + func (m *MlagEntity) SetLocalInterfaceDefault() bool + func (m *MlagEntity) SetMlagID(name string, value string) bool + func (m *MlagEntity) SetMlagIDDefault(name string) bool + func (m *MlagEntity) SetPeerAddress(value string) bool + func (m *MlagEntity) SetPeerAddressDefault() bool + func (m *MlagEntity) SetPeerLink(value string) bool + func (m *MlagEntity) SetPeerLinkDefault() bool + func (m *MlagEntity) SetShutdown(enable bool) bool + func (m *MlagEntity) SetShutdownDefault() bool + type PhysicalInputErrors struct + AlignmentErrots int + FcsErrors int + GiantFrames int + RuntFrames int + RxPause int + SymbolErrors int + type PhysicalOutputErrors struct + Collisions int + DeferredTransmissions int + LateCollisions int + TxPause int + type PortChannelInterfaceEntity struct + func PortChannel(node *goeapi.Node) *PortChannelInterfaceEntity + func (p *PortChannelInterfaceEntity) Get(name string) InterfaceConfig + func (p *PortChannelInterfaceEntity) SetLacpMode(name string, mode string) bool + func (p *PortChannelInterfaceEntity) SetMembers(name string, members ...string) bool + func (p *PortChannelInterfaceEntity) SetMinimumLinks(name string, value int) bool + func (p *PortChannelInterfaceEntity) SetMinimumLinksDefault(name string) bool + type STPEntity struct + func Stp(node *goeapi.Node) *STPEntity + func (s *STPEntity) Get() + func (s *STPEntity) Instances() *STPInstanceEntity + func (s *STPEntity) Interfaces() *STPInterfaceEntity + func (s *STPEntity) SetMode(value string) bool + type STPInstanceEntity struct + func STPInstance(node *goeapi.Node) *STPInstanceEntity + type STPInterfaceCollection map[string]STPInterfaceConfig + type STPInterfaceConfig map[string]string + type STPInterfaceEntity struct + func STPInterfaces(node *goeapi.Node) *STPInterfaceEntity + func (s *STPInterfaceEntity) ConfigureInterface(name string, cmds ...string) bool + func (s *STPInterfaceEntity) Get(name string) STPInterfaceConfig + func (s *STPInterfaceEntity) GetAll() STPInterfaceCollection + func (s *STPInterfaceEntity) SetBPDUGuard(name string, enable bool) bool + func (s *STPInterfaceEntity) SetBPDUGuardDefault(name string) bool + func (s *STPInterfaceEntity) SetPortfast(name string, enable bool) bool + func (s *STPInterfaceEntity) SetPortfastDefault(name string) bool + func (s *STPInterfaceEntity) SetPortfastType(name string, value string) bool + type ShowEntity struct + func Show(node *goeapi.Node) *ShowEntity + func (s *ShowEntity) ShowInterfaces() ShowInterface + func (s *ShowEntity) ShowTrunkGroups() ShowTrunkGroup + func (s *ShowEntity) ShowVersion() ShowVersion + type ShowInterface struct + Interfaces map[string]SwitchInterface + func (s ShowInterface) GetCmd() string + type ShowTrunkGroup struct + TrunkGroups map[string]struct{ ... } + func (s ShowTrunkGroup) GetCmd() string + type ShowVersion struct + Architecture string + BootupTimestamp float64 + HardwareRevision string + InternalBuildID string + InternalVersion string + MemFree int + MemTotal int + ModelName string + SerialNumber string + SystemMacAddress string + Version string + func (s ShowVersion) GetCmd() string + type SwitchInterface struct + Bandwidth int + BurnedInAddress string + Description string + ForwardingModel string + Hardware string + InterfaceAddress []InterfaceAddress + InterfaceCounters EthInterfaceCounters + InterfaceMembership string + InterfaceStatistics InterfaceStatistics + InterfaceStatus string + L2Mtu int + LastStatusChangeTimestamp float64 + LineProtocolStatus string + Mtu int + Name string + PhysicalAddress string + type SwitchPortConfig map[string]string + func (s SwitchPortConfig) AccessVlan() string + func (s SwitchPortConfig) Mode() string + func (s SwitchPortConfig) Name() string + func (s SwitchPortConfig) TrunkAllowedVlans() string + func (s SwitchPortConfig) TrunkGroups() string + func (s SwitchPortConfig) TrunkNativeVlan() string + type SwitchPortConfigMap map[string]SwitchPortConfig + type SwitchPortEntity struct + func SwitchPort(node *goeapi.Node) *SwitchPortEntity + func (s *SwitchPortEntity) AddTrunkGroup(intf string, value string) bool + func (s *SwitchPortEntity) Create(name string) bool + func (s *SwitchPortEntity) Default(name string) bool + func (s *SwitchPortEntity) Delete(name string) bool + func (s *SwitchPortEntity) Get(name string) SwitchPortConfig + func (s *SwitchPortEntity) GetAll() SwitchPortConfigMap + func (s *SwitchPortEntity) GetSection(name string) string + func (s *SwitchPortEntity) RemoveTrunkGroup(intf string, value string) bool + func (s *SwitchPortEntity) SetAccessVlan(name string, value string) bool + func (s *SwitchPortEntity) SetAccessVlanDefault(name string) bool + func (s *SwitchPortEntity) SetMode(name string, value string) bool + func (s *SwitchPortEntity) SetModeDefault(name string) bool + func (s *SwitchPortEntity) SetTrunkAllowedVlans(name string, value string) bool + func (s *SwitchPortEntity) SetTrunkAllowedVlansDefault(name string) bool + func (s *SwitchPortEntity) SetTrunkGroups(intf string, value []string) bool + func (s *SwitchPortEntity) SetTrunkGroupsDefault(intf string) bool + func (s *SwitchPortEntity) SetTrunkNativeVlan(name string, value string) bool + func (s *SwitchPortEntity) SetTrunkNativeVlanDefault(name string) bool + type SystemConfig map[string]string + func (s SystemConfig) HostName() string + func (s SystemConfig) IPRouting() string + type SystemEntity struct + func System(node *goeapi.Node) *SystemEntity + func (s *SystemEntity) Get() SystemConfig + func (s *SystemEntity) SetHostname(hostname string) bool + func (s *SystemEntity) SetHostnameDefault() bool + func (s *SystemEntity) SetIPRouting(value string, enable bool) bool + func (s *SystemEntity) SetIPRoutingDefault(value string) bool + type UserConfig map[string]string + func (u UserConfig) Format() string + func (u UserConfig) Nopassword() string + func (u UserConfig) Privilege() string + func (u UserConfig) Role() string + func (u UserConfig) SSHKey() string + func (u UserConfig) Secret() string + func (u UserConfig) UserName() string + type UserConfigMap map[string]UserConfig + type UserEntity struct + func User(node *goeapi.Node) *UserEntity + func (u *UserEntity) Create(name string, nopassword bool, secret string, encryption string) (bool, error) + func (u *UserEntity) CreateWithNoPassword(name string) bool + func (u *UserEntity) CreateWithSecret(name string, secret string, encryption string) (bool, error) + func (u *UserEntity) Default(name string) bool + func (u *UserEntity) Delete(name string) bool + func (u *UserEntity) Get(name string) UserConfig + func (u *UserEntity) GetAll() UserConfigMap + func (u *UserEntity) GetSection() string + func (u *UserEntity) SetPrivilege(name string, value int) (bool, error) + func (u *UserEntity) SetRole(name string, value string) bool + func (u *UserEntity) SetSshkey(name string, value string) bool + type VlanConfig map[string]string + func (v VlanConfig) Name() string + func (v VlanConfig) State() string + func (v VlanConfig) TrunkGroups() string + type VlanConfigMap map[string]VlanConfig + type VlanEntity struct + func Vlan(node *goeapi.Node) *VlanEntity + func (v *VlanEntity) AddTrunkGroup(vid string, name string) bool + func (v *VlanEntity) ConfigureVlan(vid string, cmds ...string) bool + func (v *VlanEntity) Create(vid string) bool + func (v *VlanEntity) Default(vid string) bool + func (v *VlanEntity) Delete(vid string) bool + func (v *VlanEntity) Get(vlan string) VlanConfig + func (v *VlanEntity) GetAll() VlanConfigMap + func (v *VlanEntity) GetSection(vlan string) string + func (v *VlanEntity) RemoveTrunkGroup(vid string, name string) bool + func (v *VlanEntity) SetName(vid string, name string) bool + func (v *VlanEntity) SetNameDefault(vid string) bool + func (v *VlanEntity) SetState(vid string, value string) bool + func (v *VlanEntity) SetStateDefault(vid string) bool + func (v *VlanEntity) SetTrunkGroup(vid string, value []string) bool + func (v *VlanEntity) SetTrunkGroupDefault(vid string) bool + type VxlanConfigCollection map[string]VxlanInterfaceConfig + type VxlanInterfaceConfig map[string]string + type VxlanInterfaceEntity struct + func Vxlan(node *goeapi.Node) *VxlanInterfaceEntity + func (v *VxlanInterfaceEntity) AddVtepGlobalFlood(name string, vtep string) bool + func (v *VxlanInterfaceEntity) AddVtepLocalFlood(name string, vtep string, vlan int) bool + func (v *VxlanInterfaceEntity) Get(name string) InterfaceConfig + func (v *VxlanInterfaceEntity) RemoveVlan(name string, vid int) bool + func (v *VxlanInterfaceEntity) RemoveVtepGlobalFlood(name string, vtep string) bool + func (v *VxlanInterfaceEntity) RemoveVtepLocalFlood(name string, vtep string, vlan int) bool + func (v *VxlanInterfaceEntity) SetMulticastGroup(name string, value string) bool + func (v *VxlanInterfaceEntity) SetMulticastGroupDefault(name string) bool + func (v *VxlanInterfaceEntity) SetSourceInterface(name string, value string) bool + func (v *VxlanInterfaceEntity) SetSourceInterfaceDefault(name string) bool + func (v *VxlanInterfaceEntity) SetUDPPort(name string, value int) bool + func (v *VxlanInterfaceEntity) SetUDPPortDefault(name string) bool + func (v *VxlanInterfaceEntity) UpdateVlan(name string, vid int, vni int) bool