Tags: Pack3tL0ss/central-api-cli
Tags
πv8.5.0 - β¨ ποΈ Certificates are now cached. `cencli show certs` supports a ton more filtering flags - β¨ Add `cencli update cp-cert` to update the Captive Portal certificate @ AP group level. For 1 or all AP groups. - β¨ `cencli show config <group>` will now make logical assumption on --ap/--gw if not provided. Based on the groups allowed_types. - β»οΈ 'cencli show certificates' now uses our DateTime object for expiration field, so sorting on the field works correctly. - β°οΈ Remove remaining 2 references to old time converters, and remove those functions. All time fields should be using DateTime object now. - π©Ή Fix underscores being replaced with spaces in log detail body for `show audit logs <log id>` - π Add debug logging showing lines added/removed from AP group level config when updating cp-cert-checksum - π¬ Minor change in spacing `\n` for confirmation and output in device move commands - π¬ Add cleaner for `cencli show aps --group <group> --dirty` - π§ Update example launch.json for dev - β Test with optional dependencies "speedups" - β Add nox and configuration for automating tests across different python versions. `uv venv venv3.9 --python 3.9 --seed` (repeated for each version we support) was used to create the various interpreters/versions.
πv8.4.2 ## Resolved Bugs - π Fix potential for an issue if device is provided but is offline - π Fix site match by zipcode ## Commands/Options Updates / New Commands/Features - β¨ batch delete devices can now delete any devices that have no subscription (removes association with Central in GLP) - β¨ `cencli export configs` now supports templates along with more filtering options - β¨Add Cache for named MPSKs re-arrange current MPSK cache (mpsk_networks) - β¨ Add `cencli update swarm <AP in swarm>`, to update AOS8 IAP VC/Swarm config - β¨ More options for `cencli show swarms` - β¨ Improve command and examples for `cencli batch add macs` - β¨ Add `cencli add mpsk <ssid> <email|name> --role <role>...` To add named MPSK configurations. - π¬ Various help text/caption improvements/updates. - π¬ Make improvements to batch examples - π¨ fix caption for updated `cencli batch add mpsk` - β Update MPSK completion test after function name change - π¬ Improve version output `cencli --version` `cencli show version`
# πv8.4.1 ## Resolved Bugs - π©Ή Fix issue in `show firrmware list <GW>` API endpoint now returns error stating not supported for cluster gateway. So we convert to query by dev_type - π©Ή Fix display issue in error message, when cache lookup finds a device, but of device type doesn't match provided dev_type filter. - π Fix issue with `show firmware list` when device is an AP and AP is Down. - π Fix issue with show config group level/gw - π Fix bug in `show lldp` that caused exception if provided device was a standalone switch - π Fix logic if trying to cancel device upgrade for AOS10 AP (use swarm kwarg vs serial). This makes the cancel consistent with upgrade command. - π fix minor issue that could occur when all calls fail during device cache refresh for all dev_types - π Fix issue with AOS8 IAP in `show config` with `--env` flag. - π fix issue in `show config <AP>` where group level config was being displayed, not the device level ## Commands/Options Updates / New Commands/Features - β¨ Add `cencli show insights ...` - β¨ Add/Improve `cencli update ap` and `cencli batch update aps` - β¨ Improve `batch update APs` allow import to have other device types, and ignore them, rather than erroring out. - β¨ Improve `show firmware` commands. Add support for APs in `show firmware device` - π© hide `show audit acp-logs` it's not very useful. It seems anything useful is also in `show audit logs`. - β¨ Add verbose option to `show dhcp clients` which will gather info from config for DHCP reservations, which usually only return ip and mac. - β¨ Add `update_ap_altitude` and update `update_per_ap_settings` - π¨ Update `webhook` commands - π¬ Add --example for `batch update aps` - π¬ 'cencli upgrade ...` Improve messaging and help text. Refactor options. - π¬ Improve output of `show dhcp clients` - π¬ Minor help text update to `upgrade device` - π¬ Move dynamic_antenna_models to constants - π¬ Add caption to `show webhooks` - π¬ Update webhook cleaner to show retry_type none when no policy is defined. - π¬ Improve help and output of `show wlans` ## centralcli API changes (Library changes) - π₯ Breaking Change `group_swarmid` param in get_ap_config changed to `iden` for consistencty and (serial# is valid for AOS10). - β¨ Add `update_ap_altitude` and update `update_per_ap_settings` ## Other / dev - π½οΈ update allcalls (auto generated boilerplate code) - π¨ extend colorization to more cols in csv lexer - π Remove config dump from `--debugv` log. - π Improve output in log.log_print avoid emoji πΏ common in mac addresses - π When `show=True` in logging methods display text to stderr - β»οΈ change cli.help_default to cli.help_block can now be used for default or requires blocks - β Add tests init file - The `test_devices.json` file needs to exist in the test directory, that's environment specific though. - β Add more tests - π§βπ» Add common yes_int option to CLIOptions takes -yy form vs std yes option which is bool - π§βπ» utils.parse_time_options can now return timestamps in milliseconds based on kwarg - π§βπ» Add get method to clioptions.CLIOptions argument, allows override any attribute of option.
πv8.3.1 - π© `cencli update ap ...` can now update the gps altitude at the device level. - π© Add support for device level config for AOS10 APs, and AOS8 swarms in `cencli show config...` - π© Add clients to sort options for show device commands (`show all`, `show aps` ...) - π¨ Improve `show lldp` handle multiple switches in same stack entered by serial - π§ β¨ Add WiP options for `show logs` and `show audit logs` to display logs in real-time from streaming API. (Will be `-f` option).
πv8.3.0 - π© `cencli update ap ...` can now update the gps altitude at the device level. - π© Add support for device level config for AOS10 APs, and AOS8 swarms in `cencli show config...` - π¨ Improve `show lldp` handle multiple switches in same stack entered by serial
π v8.2.6 - π fix logic in `delete device` which caused issue when partial serial is provided, and device is offline - πΈ Improve `show version` add upgrade command to output if installed with uv. - π Display log that resulted in failure for scenarios where pycentral does a sys.exit with no msg.
π v8.2.5 - π handle last_account_file from outdated version of centralcli (fewer rows being stashed) - π Fix logic if var is not None vs if var, as __bool__ is configured for CacheObject so down devices could be ignored. - ποΈ Improve cache update logic when device found only in inventory (refresh device cache, even if found in inventory)
PreviousNext