Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2026 Changes in this version + func NewConnector(name string, mode api.Mode) api.Connector + func NodeInit() + type DeviceNode struct + DeviceConfig *config.DeviceConfig + NodeMapName string + func NewDeviceNode(id, name string, nodeType api.NodeType) *DeviceNode + func (n *DeviceNode) CmdIp() string + func (n *DeviceNode) ExtraInit(adapter api.Adapter, deviceConfig *config.DeviceConfig) + func (n *DeviceNode) GetDeviceConfig() *config.DeviceConfig + func (n *DeviceNode) GetOrCreateVrf(name string) api.Vrf + func (n *DeviceNode) GetPortByID(id string) api.Port + func (n *DeviceNode) GetPortByIfIndex(ifIndex int) api.Port + func (n *DeviceNode) GetPortByNameOrAlias(name string) api.Port + func (n *DeviceNode) GetVrf(name string) api.Vrf + func (n *DeviceNode) ID() string + func (n *DeviceNode) MarshalJSON() ([]byte, error) + func (n *DeviceNode) Name() string + func (n *DeviceNode) NodeType() api.NodeType + func (n *DeviceNode) PortList() []api.Port + func (n *DeviceNode) PortRefs() []string + func (n *DeviceNode) SetDeviceConfig(deviceConfig *config.DeviceConfig) + func (n *DeviceNode) SetIpv4RouteTable(vrfName string, table *network.AddressTable) + func (n *DeviceNode) SetIpv6RouteTable(vrfName string, table *network.AddressTable) + func (n *DeviceNode) TypeName() string + func (n *DeviceNode) UnmarshalJSON(data []byte) error + func (n *DeviceNode) Vrfs() []api.Vrf + func (n *DeviceNode) WithCmdIp(ip string) + func (n *DeviceNode) WithID(id string) api.Node + func (n *DeviceNode) WithName(name string) api.Node + func (n *DeviceNode) WithNodeType(t api.NodeType) + func (n *DeviceNode) WithPortIterator(iterator api.PortIterator) api.Node + func (node *DeviceNode) AddPort(port api.Port, connection []*config.ConnectionInfo) + func (node *DeviceNode) FlattenName() string + func (node *DeviceNode) FlattenPath() []string + func (node *DeviceNode) IpRouteCheck(netList network.NetworkList, inPort, vrf string, af network.IPFamily) (bool, *tools.Table, []string, error) + func (node *DeviceNode) IpRouteCheckInternal(netList network.NetworkList, inPort, vrf string, af network.IPFamily) *model.RouteCheckResult + func (node *DeviceNode) Ipv4RouteCheck(netList network.NetworkList, inPort, vrf string) (bool, *tools.Table, []string, error) + func (node *DeviceNode) Ipv4RouteTable(vrfName string) *network.AddressTable + func (node *DeviceNode) Ipv6RouteCheck(netList network.NetworkList, inPort, vrf string) (bool, *tools.Table, []string, error) + func (node *DeviceNode) Ipv6RouteTable(vrfName string) *network.AddressTable + func (node *DeviceNode) WithNodeMap(name string) api.Node + type FhrpGroup struct + Chain *validator.ValidateChain + FhrpGroupIp string + FhrpMode api.FhrpMode + Members []api.Member + func NewFhrpGroup(FhrpGroupIp string, mode api.FhrpMode) *FhrpGroup + func (FhrpGroup) TableName() string + func (fg *FhrpGroup) GroupIp() string + func (fg *FhrpGroup) TypeName() string + func (fg *FhrpGroup) UnmarshalJSON(data []byte) error + func (fg FhrpGroup) MarshalJSON() ([]byte, error) + func (g *FhrpGroup) Active() api.Member + func (g *FhrpGroup) AddMember(member api.Member) + type FhrpGroupValidator struct + func (v *FhrpGroupValidator) Validate(data map[string]interface{}) validator.Result + type InterfaceConnectionValidator struct + func (icv InterfaceConnectionValidator) Validate(data map[string]interface{}) validator.Result + type IpAddressConflictValidator struct + func (iv *IpAddressConflictValidator) Validate(data map[string]interface{}) validator.Result + type Member struct + FrhgGroupId int + MemberFhrpMode api.FhrpMode + MemberIp string + MemberPortName string + Priority int + State State + func NewMember(MemberPortName, MemberIp, state, mode string, groupId, Priority int) *Member + func (Member) TableName() string + func (m *Member) UnmarshalJSON(data []byte) error + func (m Member) FhrpMode() api.FhrpMode + func (m Member) Hit(MemberIp string) bool + func (m Member) Ip() string + func (m Member) IsActive() bool + func (m Member) MarshalJSON() ([]byte, error) + func (m Member) PortName() string + func (m Member) TypeName() string + type NameDuplicationValidator struct + func (nv *NameDuplicationValidator) Validate(data map[string]interface{}) validator.Result + type NetworkInRouteValidator struct + func (nv *NetworkInRouteValidator) Validate(data map[string]interface{}) validator.Result + type NetworkListRuleValidator struct + func (nv *NetworkListRuleValidator) Validate(data map[string]interface{}) validator.Result + type NetworkTypeValidator struct + func (nv *NetworkTypeValidator) Validate(data map[string]interface{}) validator.Result + type NodeConnector struct + FhrpGroup []api.FhrpGroup + IPv4 api.StringList + IPv6 api.StringList + Name string + PortRawData api.ByteList + func (c *NodeConnector) AddFhrpGroupMember(member api.Member) + func (c *NodeConnector) Attach(port api.Port) + func (c *NodeConnector) GetOrCreateFhrpGroup(groupIp string, mode api.FhrpMode) api.FhrpGroup + func (c *NodeConnector) HitByIp(ipWithPrefix, vrf string) bool + func (c *NodeConnector) HitByNetwork(net network.AbbrNet, vrf string) bool + func (c *NodeConnector) ID() string + func (c *NodeConnector) IPv4List() api.StringList + func (c *NodeConnector) IPv6List() api.StringList + func (c *NodeConnector) MarshalJSON() ([]byte, error) + func (c *NodeConnector) Mode() api.Mode + func (c *NodeConnector) Port(name string) api.Port + func (c *NodeConnector) PortCount() int + func (c *NodeConnector) PortList() []api.Port + func (c *NodeConnector) SelectNodeByIp(ip, vrf string) (api.Node, api.Port) + func (c *NodeConnector) SelectPortListByNetwork(net network.AbbrNet, vrf string) []api.Port + func (c *NodeConnector) TypeName() string + func (c *NodeConnector) UnmarshalJSON(data []byte) error + func (c *NodeConnector) Verify(port api.Port) validator.Result + func (c *NodeConnector) WithPortIterator(iterator api.PortIterator) + type NodePort struct + Alias api.StringList + AreaIPv4 string + AreaIPv6 string + Connector string + ConnectorRaw string + Description string + FhrpMembers []api.Member + FhrpMembersRaw string + InputAcl string + IpList map[network.IPFamily][]string + IpListRaw string + NodeID int + OutputAcl string + ParentNode api.Node + PortName string + PortVrf string + PrimaryIpv4 string + PrimaryIpv6 string + RemoteVrf api.StringList + SecurityLevel string + SnmpIfIndex int + Status api.PortStatus + StubAreaIPv4 bool + StubAreaIPv6 bool + Tenant string + ZoneName string + func NewPort(name, tenant string, ip_list map[network.IPFamily][]string, ...) *NodePort + func (NodePort) TableName() string + func (p *NodePort) AddIpv4(ip string) + func (p *NodePort) AddIpv6(ip string) + func (p *NodePort) AliasName() []string + func (p *NodePort) Area(ipFamily network.IPFamily) string + func (p *NodePort) ConnectorID() string + func (p *NodePort) FlattenName() string + func (p *NodePort) FlattenPath() []string + func (p *NodePort) FullMatchByIp(ip, PortVrf string) bool + func (p *NodePort) GetIpList() map[network.IPFamily][]string + func (p *NodePort) HitByIfIndex(SnmpIfIndex int) bool + func (p *NodePort) HitByIp(target, PortVrf string) bool + func (p *NodePort) HitByIpWithoutPrefix(target, PortVrf string) bool + func (p *NodePort) HitByName(name string) bool + func (p *NodePort) HitByNetwork(net network.AbbrNet) bool + func (p *NodePort) ID() string + func (p *NodePort) IfIndex() int + func (p *NodePort) Ipv4List() []string + func (p *NodePort) Ipv6List() []string + func (p *NodePort) IsStubArea(ipFamily network.IPFamily) bool + func (p *NodePort) MatchVrfOrPeerVrf(name string) bool + func (p *NodePort) Members() []api.Member + func (p *NodePort) Name() string + func (p *NodePort) NetworkGroup() *network.NetworkGroup + func (p *NodePort) Node() api.Node + func (p *NodePort) PeerVrf() []string + func (p *NodePort) TypeName() string + func (p *NodePort) UnmarshalJSON(data []byte) error + func (p *NodePort) V4NetworkGroup() *network.NetworkGroup + func (p *NodePort) V6NetworkGroup() *network.NetworkGroup + func (p *NodePort) Vrf() string + func (p *NodePort) WithAliasName(name string) api.Port + func (p *NodePort) WithArea(areaName string, ipFamily network.IPFamily) api.Port + func (p *NodePort) WithConnectorID(id string) + func (p *NodePort) WithDescription(description string) api.Port + func (p *NodePort) WithID(id string) api.Port + func (p *NodePort) WithIfIndex(SnmpIfIndex int) api.Port + func (p *NodePort) WithNode(node api.Node) api.Port + func (p *NodePort) WithPeerVrf(name string) api.Port + func (p *NodePort) WithStatus(status string) api.Port + func (p *NodePort) WithStubArea(isStubArea bool, ipFamily network.IPFamily) api.Port + func (p *NodePort) WithVrf(PortVrf string) api.Port + func (p NodePort) MarshalJSON() ([]byte, error) + type NodePortIpList struct + Ip string + IpType network.IPFamily + NodePortID int + type NodeVrf struct + func (NodeVrf) WappterUuid() string + func (nv *NodeVrf) Ipv4Table() *network.AddressTable + func (nv *NodeVrf) Ipv6Table() *network.AddressTable + func (nv *NodeVrf) MarshalJSON() ([]byte, error) + func (nv *NodeVrf) Name() string + func (nv *NodeVrf) TypeName() string + func (nv *NodeVrf) UnmarshalJSON(data []byte) error + type State int + const ACTIVE + const STANDBY + const UNKNOWN_STATE + func ToState(state string) State + func (s State) String() string + type VrfExistValidator struct + func (v *VrfExistValidator) Validate(data map[string]interface{}) validator.Result