add toughswitch consolidated type, and use in cmd

This commit is contained in:
2026-01-19 11:45:16 -05:00
parent 4964317b6b
commit b4f49be2c6
3 changed files with 143 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ func fetchToughSwitchDevice(ctx context.Context, clientConf *config.ClientConfig
return nil, fmt.Errorf("login failed: %w", err)
}
return client.GetDevice(ctx, clientConf.Host)
return client.GetToughSwitch(ctx, clientConf.Host)
}
func fetchEdgeOSDevice(ctx context.Context, clientConf *config.ClientConfig) (any, error) {