Add type, add a few more switches

This commit is contained in:
2025-07-05 23:54:52 +00:00
parent 64a4d53cf7
commit a72fcb007e
2 changed files with 17 additions and 2 deletions

View File

@ -2,10 +2,16 @@ types:
srlinux:
commands:
- show version
- show platform fan-tray
- show platform linecard
- show platform fan-tray
- show platform power-supply
- info flat from running
eos:
commands:
- show version
- show inventory
- show env power
- show running-config
devices:
asw100:
@ -17,3 +23,12 @@ devices:
asw121:
user: pim
type: srlinux
asw110:
user: pim
type: eos
asw111:
user: pim
type: eos
asw112:
user: pim
type: eos

View File

@ -254,7 +254,7 @@ func main() {
totalCount := len(config.Devices)
for hostname, deviceConfig := range config.Devices {
fmt.Printf("\nProcessing device: %s\n", hostname)
fmt.Printf("\nProcessing device: %s (type: %s)\n", hostname, deviceConfig.Type)
user := deviceConfig.User
commands := deviceConfig.Commands