We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@cheynearista
How do I implement a custom command where I pass a string to the GetCmd() function?
In my case below I want to build a command that returns only a single interface - testing with Ethernet1
type ShowInterfaceDescription struct { InterfaceDescriptions map[string]InterfaceInfo `json:"interfaceDescriptions"` } type InterfaceInfo struct { InterfaceStatus string `json:"interfaceStatus"` Description string `json:"description"` LineProtocolStatus string `json:"lineProtocolStatus"` } func (s *ShowInterfaceDescription) GetCmd() string { i := "Ethernet1" return fmt.Sprintf("show interfaces %v description", i) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@cheynearista
How do I implement a custom command where I pass a string to the GetCmd() function?
In my case below I want to build a command that returns only a single interface - testing with Ethernet1
The text was updated successfully, but these errors were encountered: