-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add description field to VMs, Devices, Clusters Resource/Data #401
Conversation
Note that, for VM things, you might also have to update the
|
I had actually started to play with that. If we want to use partial, we may have to use |
@fbreckle - i have updated this per your recommendation. Can you please review now? |
Tests are failing |
Yes but only on old versions. It works fine on newest version of netbox. Not sure what the difference could be? |
Maybe similar to this? #427 |
Gotcha.... according to netbox-community/netbox#11488 there were lots of description fields missing in the API. It was fixed in 3.4.3 it seems. I agree the versioning problem is hard...seems like we should be able to release a new version with compatibility for version 3.4.3 and above, or something like that, and remove the tests for older versions. If people are running older netbox versions, they need to use the older provider. |
Yes, that's the general idea. But that also means that people using older provider versions miss some features and bugfixes, so I do not want to cut them off just willy-nilly. |
Ok, sounds good. I can submit a PR to remove the old versions and will see if there are other description fields missing that I can update at the same time as well. |
As discussed here: e-breuninger#401 (comment) we want to remove tests for versions before 3.4.3. This will enable us to add description fields to many resources that were added in version 3.4.3 of netbox.
depends on #433 |
As discussed here: e-breuninger#401 (comment) we want to remove tests for versions before 3.4.3. This will enable us to add description fields to many resources that were added in version 3.4.3 of netbox.
As discussed here: #401 (comment) we want to remove tests for versions before 3.4.3. This will enable us to add description fields to many resources that were added in version 3.4.3 of netbox.
With #433 merged, bump. |
@fbreckle - all tests have passed. |
3c3f496
to
0d19e56
Compare
Sorry about all the tab issues! Vscode being dumb. |
We were missing the ability to add a descriptions to devices, VMs, and clusters. There are also corresponding data sources that do not have the description field. These fields were not available prior to netbox 3.4.3. This adds the description field, following the example of the comment field. The code was also slightly modified to be simpler to understand.
@fbreckle - i added few things to this. It should be ready now. |
As discussed here: e-breuninger#401 (comment) we want to remove tests for versions before 3.4.3. This will enable us to add description fields to many resources that were added in version 3.4.3 of netbox.
We were missing the ability to add a descriptions to devices, VMs, and
clusters. There are also corresponding data sources that do not have the
description field.
These fields were not available prior to netbox 3.4.3.
This adds the description field, following the example of the comment
field. The code was also slightly modified to be simpler to understand.