switchs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArpIndexProcess

func ArpIndexProcess(t *clitask.Table, index string, arp map[string]string) error

func BackupFile

func BackupFile(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func COMWAREPortChannel

func COMWAREPortChannel(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (comware_table *clitask.Table, err error)

func COMWARESshLldp

func COMWARESshLldp(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (lldp_table *clitask.Table, err error)

func COMWARESshLldp2

func COMWARESshLldp2(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (lldp_table *clitask.Table, err error)

func COMWARESshMactable

func COMWARESshMactable(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (mactable *clitask.Table, err error)

func COMWARESshStp

func COMWARESshStp(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (stp_table *clitask.Table, err error)

func CdpIndexProcess

func CdpIndexProcess(t *clitask.Table, index string, cdp map[string]string) error

func CheckBoot

func CheckBoot(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func CheckDir

func CheckDir(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func CheckImpact

func CheckImpact(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func CheckInstall

func CheckInstall(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func CheckInstall2

func CheckInstall2(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func CheckStatus

func CheckStatus(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func CheckVersion

func CheckVersion(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func CiscoSshIosMactable

func CiscoSshIosMactable(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (mac_table *clitask.Table, err error)

func CiscoSshLldp

func CiscoSshLldp(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (lldp_table *clitask.Table, err error)

func CiscoSshNexusMactable

func CiscoSshNexusMactable(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (mac_table *clitask.Table, err error)

func CiscoStp

func CiscoStp(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (tableResult *clitask.Table, err error)

func Config

func Config(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func ConfigCMDEXECOutput

func ConfigCMDEXECOutput(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func ConfigWithCommand

func ConfigWithCommand(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func ConfigWithTerminalCmd

func ConfigWithTerminalCmd(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func Dot1dIndexProcess

func Dot1dIndexProcess(t *clitask.Table, index string, dot1d map[string]string) error

func Exec

func Exec(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func ExecCmdMaps

func ExecCmdMaps(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func ExecWithTerminalCmd

func ExecWithTerminalCmd(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func ExecWithTime

func ExecWithTime(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, timeout int, options ...interface{}) (result *clitask.Table, err error)

func GeImpactMethod

func GeImpactMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func GetBootMethod

func GetBootMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func GetDirMethod

func GetDirMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result map[string]string)

func GetInstallMethod

func GetInstallMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func GetInstallMethod2

func GetInstallMethod2(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func GetPatchVersionMethod

func GetPatchVersionMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func GetStatusMethod

func GetStatusMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func GetVersionAndImage

func GetVersionAndImage(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func GetVersionAndImageMethod

func GetVersionAndImageMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (version, image string)

func GetVersionMethod

func GetVersionMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (version string)

func GetVersionMethod2

func GetVersionMethod2(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (version, versionChild string)

func HotFixMethod

func HotFixMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func HuaWeiSshLldp

func HuaWeiSshLldp(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (lldp_table *clitask.Table, err error)

func HuaWeiSshVlan

func HuaWeiSshVlan(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (tableResult *clitask.Table, err error)

func ImportFtp

func ImportFtp(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func ImportFtpMethod

func ImportFtpMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func InstallHotFix

func InstallHotFix(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func Ipv6Neighbor

func Ipv6Neighbor(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (tb *clitask.Table, err error)

func LLdpIndexProcess

func LLdpIndexProcess(t *clitask.Table, index string, lldp map[string]string) error

func LLdpIndexProcess2

func LLdpIndexProcess2(t *clitask.Table, index string, lldp map[string]string) error

func LinkCheckImport

func LinkCheckImport(desc string) (result *clitask.Table)

func LinkCheckPass

func LinkCheckPass(desc string) (result *clitask.Table)

func MacProcess

func MacProcess(t *clitask.Table, index string, mac map[string]string) error

func NexusPortInfo2

func NexusPortInfo2(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (*clitask.Table, error)

sh interface |json

func NormalCdp

func NormalCdp(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, useDot1D bool) (*clitask.Table, error)

func NormalCdp2

func NormalCdp2(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, useDot1D bool) (*clitask.Table, error)

func PatchVersion

func PatchVersion(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func PortIpIndexProcess

func PortIpIndexProcess(t *clitask.Table, index string, portip map[string]string) error

func Reboot

func Reboot(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func RebootMethod

func RebootMethod(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table)

func RuijieSshLldp

func RuijieSshLldp(remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface) (lldp_table *clitask.Table, err error)

func RunSnmpTask

func RunSnmpTask(task *snmp.SnmpTask, remote *structs.L2DeviceRemoteInfo) (*clitask.Table, error)

func SSHGetWithCMD

func SSHGetWithCMD(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table, err error)

func SSHGetWithCMDTimeOut

func SSHGetWithCMDTimeOut(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, timeout int, options ...interface{}) (result *clitask.Table, err error)

func SSHGetWithCmcPrompt

func SSHGetWithCmcPrompt(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table, err error)

func SSHGetWithCmdPrompt

func SSHGetWithCmdPrompt(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table, err error)

func SSHGetWithConfig

func SSHGetWithConfig(remote *structs.L2DeviceRemoteInfo, deviceType terminalmode.DeviceType, logger *log.Logger, options ...interface{}) (result *clitask.Table, err error)

func SnmpGetVersion

func SnmpGetVersion(remote *structs.L2DeviceRemoteInfo, logger *log.Logger) (result *clitask.Table, err error)

func StepSwitchInteraction

func StepSwitchInteraction(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func StepWitchCMDs

func StepWitchCMDs(deviceType terminalmode.DeviceType, remote *structs.L2DeviceRemoteInfo, taskConfig structs.L2NodemapTaskConfigInterface, options ...interface{}) (result *clitask.Table, err error)

func VlanIndexProcess

func VlanIndexProcess(t *clitask.Table, index string, vlan map[string]string) error

Types

type PortInfo

type PortInfo struct {
	TablePort RowPort `json:"TABLE_interface"`
}

type PortTxt

type PortTxt struct {
	Interface string `json:"interface"`
	State     string `json:"state"`
}

type RowPort

type RowPort struct {
	Ports []PortTxt `json:"Row_interface"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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