Skip to content
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

Created methods to create, retrieve, update and delete virtual chassi… #56

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DarylStark
Copy link
Contributor

…s. Adding a device to a Virtual Chassis is a field for the device-model and should be done by updating the device (update_device).

netbox/dcim.py Outdated
:param kwargs: requests body dict
:return: bool True if successful otherwise raise UpdateException
"""
device_id = self.get_virtual_chassis(name=virtual_chassis_name)[0]['id']
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable name is device_id. Now I assume you would do a self.get_devices.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you're right; I fixed it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants