-
Notifications
You must be signed in to change notification settings - Fork 92
Patch 2 #46
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
Patch 2 #46
Conversation
oniram22
commented
Dec 27, 2019
- Added add_group_custom_property method
- Added set_group_custom_properties method
- Changed name of set_custom_properties to set_node_custom_property
- Changed name of get_custom_properties to get_node_custom_properties
- Added add_dns_a_record_with_ptr_to_ipam method
- Added add_group_custom_property method - Added set_group_custom_property method - Changed the name of set_custom_properties to set_node_custom_property - Changed the name of get_custom_properties to get_node_custom_properties - Added add_dns_a_record_with_ptr_to_ipam method
danjagnow
left a comment
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.
Looks good! I have one minor parameter-ordering issue that I'd prefer to see changed before merging.
| results = self.swis.create('Orion.IpSla.Operations', **ip_sla_properties) | ||
| self.logger.info("add_icmp_echo_ip_sla_operation_to_node - add IP SLA operation to node create results: %s", results) | ||
|
|
||
| def set_custom_properties(self, node_name, custom_property_name, custom_property_value): |
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 method name changes for set_custom_properties and get_custom_properties are breaking changes, but those are better names.
orionsdk/solarwinds.py
Outdated
| report_id = results['results'][0]['PolicyReportID'] | ||
| self.swis.invoke('Cirrus.PolicyReports', 'StartCaching', [report_id]) | ||
|
|
||
| def add_dns_a_record_with_ptr_to_ipam(self, name, ip_address, domain, server): |
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.
For consistency, I'd keep the parameter order the same here as in the invocation below: server then domain.
…ade per your suggestion.
danjagnow
left a comment
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.
Looks good. Thanks!