-
Notifications
You must be signed in to change notification settings - Fork 30
Enhancement to Device Group and Device Functions #152
Conversation
- make radius and snmp optional - provide defaults for location and type - support 0, 1, n groups
- make several staticlly configured values optional parameters - update doc_string
new function to support deleting a device group
Hi, great PR! -- |
Arrh, I must reinstall my ISE dev env. |
Thanks for the PR, that was really great work! Again, thanks for your time! -- |
Thanks for merging it in, I was glad to contribute back. And Ill be happy to switch and use the upstream option from pypi rather than my fork. If I get into any more enhancements I’ll certainly send them upstream as well. And one last question/thought. Have you considered submitting the repo to DevNet’s Code Exchange (https://developer.cisco.com/codeexchange)? It would fit very well as a community Python library for ISE. |
I'll check codeexchange out today :) |
done :) |
When doing some unittesting i get some inconsistance in update_device. I think that the radius problem is the culprit. First time I use update_device to change name on the device it changes some values by default.
Is this by design? -- |
First, thanks for putting work together on this library. As I was diving into my first Cisco ISE programmability project I was happy to find a library that had much of what I needed already worked out. There were a handful of features/functions that were missing for my project. I went ahead and added them to the library, trying to stick with the general style and functionality of the library.
Here's what I think is a summary of the features/changes included here:
Fleshing out the CRUD for Device Groups
add_device_group
that adds a new device groupupdate_device_group
that, you guessed it, updates a device group.delete_device_group
. I bet you can guess what this doesAnd putting the "U" into CRUD for devices
update_device
to allow updating a device. This one was complicated to support the variety of update options for a device.In addition to the new functions, I enhanced a couple of existing functions
get_device_group
that looks up a device group from ISE given a group ID, name, or partial name.add_device
to make all the attributes configurable as function parameters. I also provided an alternative option of providing a device payload as a single dictionary rather than individual attributes.Let me know any questions or requests for tweaks to the PR. I'd love to contribute back into the library for others to take advantage of.