-
Notifications
You must be signed in to change notification settings - Fork 50
Added SNMP Notification Receiver #129
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
Added SNMP Notification Receiver #129
Conversation
|
You can change lib/.rubocop.yml to add the appropriate new upper bounds for these metrics as part of this PR. Alternately, consider splitting the argument validation into a separate validation function - see snmpuser.rb for an example. |
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.
Consider using named args instead:
def initialize(name,
instantiate: true, type: '', version: '', security: '', username: '',
port: '', vrf: '', source_interface: '')This will make the instantiation calls easier to read and less error prone:
receiver = Cisco::SnmpNotificationReceiver.new(
id,
instantiate: true,
type: 'informs',
version: '3',
security: 'priv',
username: 'ab',
port: '45',
vrf: 'red',
source_interface: 'ethernet1/3')e0093db to
05432a1
Compare
|
@glennmatthews @mikewiebe Can this please be merged, the code has been updated, thanks |
ddd6067 to
0f2136a
Compare
CHANGELOG.md
Outdated
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.
missing space between * and SNMP is causing the markdown to render this as italics instead of a bullet list - please fix.
9c5e350 to
cdfff68
Compare
cdfff68 to
fae258b
Compare
|
@glennmatthews @chrisvanheuveln @mikewiebe Happy New Year! I've made the requested changes. It would be appreciated if this could be merged. Thanks |
|
👍 |
Added SNMP Notification Receiver
This is currently failing rubocop on the following:
However, this needs to be changed in the upstream rubocop code. My current code for this class is appropriate for the task, and is in line with other the other classes that has been merged.