Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@oniram22
Copy link
Contributor

  • 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 danjagnow self-requested a review January 3, 2020 14:41
Copy link
Contributor

@danjagnow danjagnow left a 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):
Copy link
Contributor

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.

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):
Copy link
Contributor

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.

Copy link
Contributor

@danjagnow danjagnow left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@danjagnow danjagnow merged commit 9716845 into solarwinds:master Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants