netautomation

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommitConfig

func GetCommitConfig(device *ent.Device) (config []string)

Types

type PingResponse

type PingResponse struct {
	Map     *ent.Device `json:"map"`
	IsAlive bool        `json:"is_alive"`
	AvgRtt  string      `json:"avg_rtt"`
}

func PingDevice

func PingDevice(obj *ent.Device) (response *PingResponse)

type PingResponseDeviceMap

type PingResponseDeviceMap struct {
	Map     *ent.NetTopologyDeviceMap `json:"map"`
	IsAlive bool                      `json:"is_alive"`
	AvgRtt  string                    `json:"avg_rtt"`
}

func PingTopology

func PingTopology(topo *ent.NetTopology) (response []*PingResponseDeviceMap)

type Task

type Task types.Task

func (*Task) GetCommands

func (task *Task) GetCommands() []string

func (*Task) SendConfig

func (task *Task) SendConfig() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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