-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: master
Are you sure you want to change the base?
Conversation
…s. Adding a device to a Virtual Chassis is a field for the device-model and should be done by updating the 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'] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
…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
).