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

Add class ovs_events plugin #743

Merged
merged 1 commit into from Mar 6, 2018

Conversation

paramite
Copy link
Contributor

This patch is adding support for ovs_events plugin configuration and installation.

@paramite paramite force-pushed the feature/ovs_events branch 3 times, most recently from 276ceda to fffe997 Compare January 18, 2018 15:01
@paramite
Copy link
Contributor Author

paramite commented Jan 19, 2018

@bastelfreak: Can this be merged now please, when all checks are passing?

@paramite
Copy link
Contributor Author

@alexjfisher This one is similar, can you please check it too? Thanks in advance.

<%- if @interfaces %>
Interfaces "<%= @interfaces.join('" "') %>"
<%- end -%>
<%- if defined?(@send_notification) %>
Copy link
Member

Choose a reason for hiding this comment

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

I'd have gone with unless @send_notification.null?, but I guess if defined? also works.

Optional[String] $address = undef,
Optional[Boolean] $dispatch = undef,
String $ensure = 'present',
Optional[Array] $interfaces = undef,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe better to use Optional[Array[1]]? or default to an empty array and adjust the template.

# by the plugin
#
class collectd::plugin::ovs_events (
Optional[String] $address = undef,
Copy link
Member

Choose a reason for hiding this comment

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

Stdlib::Host is available in recent stdlib.

@alexjfisher
Copy link
Member

@paramite LGTM. I've left a couple of random comments, but these are very minor and subjective.

@paramite
Copy link
Contributor Author

paramite commented Mar 6, 2018

@alexjfisher So as test suite discovered, "@send_notification.null?" does not work. I've added the other suggested changes.

This patch is adding support for ovs_events plugin configuration and installation.
@bastelfreak bastelfreak added the enhancement New feature or request label Mar 6, 2018
# by the plugin
#
class collectd::plugin::ovs_events (
Optional[Stdlib::Host] $address = undef,
Copy link
Member

Choose a reason for hiding this comment

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

datatypes \o/

@bastelfreak
Copy link
Member

Thanks for the PR @paramite !

@bastelfreak bastelfreak merged commit 40ebcde into voxpupuli:master Mar 6, 2018
@bastelfreak bastelfreak changed the title Adds class ovs_events plugin Add class ovs_events plugin Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants