Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2026 Changes in this version + type Adapter interface + AttachChannel func(out chan string) bool + BatchConfig func(p ...interface{}) (interface{}, error) + BatchRun func(interface{}) (interface{}, error) + GetConfig func(force bool) interface{} + GetRawConfig func(string, bool) (any, error) + Info func(bool) (*device.DeviceBaseInfo, error) + ParseName func(force bool) string + PortList func(force bool) []Port + RouteTable func(force bool) (ipv4TableMap, ipv6TableMap map[string]*network.AddressTable) + TaskId func() uint + type AdapterType int + const LiveAdapter + const StringAdapter + type ByteList []byte + func (ByteList) GormDataType() string + func (m *ByteList) Scan(value interface{}) error + func (m *ByteList) UnmarshalJSON(b []byte) error + func (m ByteList) MarshalJSON() (b []byte, err error) + func (m ByteList) Value() (driver.Value, error) + type Connector interface + AddFhrpGroupMember func(member Member) + Attach func(port Port) + GetOrCreateFhrpGroup func(groupIp string, mode FhrpMode) FhrpGroup + HitByIp func(ipWithPrefix, vrf string) bool + HitByNetwork func(net network.AbbrNet, vrf string) bool + ID func() string + IPv4List func() StringList + IPv6List func() StringList + Mode func() Mode + Port func(name string) Port + PortCount func() int + PortList func() []Port + SelectNodeByIp func(ip, vrf string) (Node, Port) + SelectPortListByNetwork func(net network.AbbrNet, vrf string) []Port + Verify func(port Port) validator.Result + WithPortIterator func(iterator PortIterator) + type ConnectorCatalog int + const NODE_CONNECTOR + type FhrpGroup interface + Active func() Member + AddMember func(member Member) + GroupIp func() string + type FhrpMode int + const HSRP + const NONE + const VRRP + func ToMode(mode string) FhrpMode + func (m FhrpMode) String() string + type FirewallDumper interface + AclToDb func(*gorm.DB, uint) + AddressGroupToDb func(*gorm.DB, uint) + ExtraToDb func(*gorm.DB, uint) + NatsToDb func(*gorm.DB, uint) + NetworkObjectToDb func(*gorm.DB, uint) + PolicyToDb func(*gorm.DB, uint) + ServiceObjectToDb func(*gorm.DB, uint) + type JSONSerializer interface + MarshalJSON func() ([]byte, error) + UnmarshalJSON func([]byte) error + type Member interface + FhrpMode func() FhrpMode + Hit func(ip string) bool + Ip func() string + IsActive func() bool + PortName func() string + type Mode int + const MP + const P2P + func (m Mode) String() string + type Node interface + AddPort func(port Port, connection []*config.ConnectionInfo) + CmdIp func() string + ExtraInit func(adapter Adapter, deviceConfig *config.DeviceConfig) + FlattenName func() string + FlattenPath func() []string + GetDeviceConfig func() *config.DeviceConfig + GetOrCreateVrf func(name string) Vrf + GetPortByID func(id string) Port + GetPortByIfIndex func(ifIndex int) Port + GetPortByNameOrAlias func(name string) Port + GetVrf func(name string) Vrf + ID func() string + IpRouteCheck func(netList network.NetworkList, inPort, vrf string, af network.IPFamily) (bool, *tools.Table, []string, error) + Ipv4RouteCheck func(netList network.NetworkList, inPort, vrf string) (bool, *tools.Table, []string, error) + Ipv4RouteTable func(vrfName string) *network.AddressTable + Ipv6RouteCheck func(netList network.NetworkList, inPort, vrf string) (bool, *tools.Table, []string, error) + Ipv6RouteTable func(vrfName string) *network.AddressTable + Name func() string + NodeType func() NodeType + PortList func() []Port + PortRefs func() []string + SetDeviceConfig func(deviceConfig *config.DeviceConfig) + SetIpv4RouteTable func(vrfName string, table *network.AddressTable) + SetIpv6RouteTable func(vrfName string, table *network.AddressTable) + Vrfs func() []Vrf + WithCmdIp func(ip string) + WithID func(id string) Node + WithName func(name string) Node + WithNodeMap func(name string) Node + WithPortIterator func(iterator PortIterator) Node + type NodeSession interface + BatchRun func(cmds interface{}, stopOnError bool) error + type NodeType int + const FIREWALL + const LB + const ROUTER + func (nt NodeType) String() string + type Port interface + AddIpv4 func(ip string) + AddIpv6 func(ip string) + AliasName func() []string + Area func(ipFamily network.IPFamily) string + ConnectorID func() string + FlattenName func() string + FlattenPath func() []string + FullMatchByIp func(ip, vrf string) bool + GetIpList func() map[network.IPFamily][]string + HitByIfIndex func(ifIndex int) bool + HitByIp func(target, vrf string) bool + HitByIpWithoutPrefix func(target, vrf string) bool + HitByName func(name string) bool + HitByNetwork func(net network.AbbrNet) bool + ID func() string + IfIndex func() int + Ipv4List func() []string + Ipv6List func() []string + IsStubArea func(ipFamily network.IPFamily) bool + MatchVrfOrPeerVrf func(name string) bool + Members func() []Member + Name func() string + NetworkGroup func() *network.NetworkGroup + Node func() Node + PeerVrf func() []string + V4NetworkGroup func() *network.NetworkGroup + V6NetworkGroup func() *network.NetworkGroup + Vrf func() string + WithAliasName func(name string) Port + WithArea func(areaName string, ipFamily network.IPFamily) Port + WithConnectorID func(id string) + WithID func(id string) Port + WithNode func(node Node) Port + WithPeerVrf func(name string) Port + WithStatus func(status string) Port + WithStubArea func(isStubArea bool, ipFamily network.IPFamily) Port + WithVrf func(vrf string) Port + type PortIterator interface + GetAllPorts func() []Port + GetPort func(ref string) Port + type PortStatus int + const DOWN + const UNKNOWN + const UP + func NewPortStatusFromString(status string) PortStatus + func (p PortStatus) String() string + type StringList []string + func (StringList) GormDataType() string + func (m *StringList) Scan(value interface{}) error + func (m StringList) Value() (driver.Value, error) + type TypedInterface interface + TypeName func() string + type Vrf interface + Ipv4Table func() *network.AddressTable + Ipv6Table func() *network.AddressTable + Name func() string