Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugCount = 0
View Source
var KindMap = map[string]KindDef{ "vr-sros": { Platform: "nokia_sros", Comment: "#", Commit: []string{"validate", "compare / ", "commit", "discard /"}, Compare: []string{"validate", "compare /", "discard /"}, }, "srl": { Platform: "nokia_srl", Comment: "#", Commit: []string{"commit validate", "diff ", "commit now"}, Compare: []string{"commit validate", "diff", "discard now"}, }, "ceos": { Platform: "arista_eos", }, "crpd": { Platform: "juniper_junos", }, "vr-csr": { Platform: "cisco_iosxe", }, "vr-n9kv": { Platform: "cisco_nxos", }, "vr-nxos": { Platform: "cisco_nxos", }, "vr-pan": { Platform: "paloalto_panos", }, "vr-veos": { Platform: "arista_eos", }, "vr-vmx": { Platform: "juniper_junos", }, "vr-vqfx": { Platform: "juniper_junos", }, "vr-xrv": { Platform: "cisco_iosxr", }, "vr-xrv9k": { Platform: "cisco_iosxr", }, }
Functions ¶
func KindMapOverride ¶ added in v0.0.8
Override KindMap with values from settings
Types ¶
type Action ¶
type Action int
func StringToAction ¶ added in v0.0.3
Parse a string and return an action
type KindDef ¶
type KindDef struct { Platform string `yaml:"platform"` // the scrapligo SSH platform definition Comment string `yaml:"comment"` // character to indicate line is a comment Commit []string `yaml:"commit"` // commands to commit and compare sessions Compare []string `yaml:"compare"` // commands compare sessions }
type Response ¶
type Response struct { Node string `json:"node"` Source string `json:"source"` Prompt string `json:"prompt"` Command string `json:"command"` Response string `json:"response"` Level log.Level `json:"level"` }
The SSH reply, executed command and the prompt
type SSHTx ¶
type SSHTx struct { TargetNode *types.NodeConfig Vars map[string]interface{} Config []configLines }
Click to show internal directories.
Click to hide internal directories.