PowerAruba / PowerArubaCX

PowerShell module to manage ArubaCX switches
Apache License 2.0
14 stars 5 forks source link

Get-arubacxinterfaces ignores attributes parameter when getting full list #60

Open orion3311 opened 2 years ago

orion3311 commented 2 years ago

Nice work with this! I found what may be an issue - when doing get-arubacxinterfaces -attributes name,description, it uses the default parameters/columns. If I do the command for a single interface, like get-arubacxinterfacers 2/1/1 -attributes name,description, that works fine.

Be nice to select custom columns when pulling all interfaces (as I need to sort/filter by description)

Thanks!

alagoutte commented 2 years ago

Hi orion3311,

it is "by design" on the API... (i don't really make sort/filter, i using Aruba CX API Call: Attributes parameter... -> https://github.com/PowerAruba/PowerArubaCX/blob/master/PowerArubaCX/Public/Interfaces.ps1#L478)