Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d55912b3 authored by Simon Delamare's avatar Simon Delamare
Browse files

[lib] kwollect : use new snmp_name field for network metric

parent 1e9353f2
Branches
No related tags found
No related merge requests found
......@@ -10,9 +10,8 @@ neteq.fetch('metrics', []).each {|metric|
neteq['linecards'].each_with_index {|linecard, linecard_uid|
linecard.fetch('ports', []).each_with_index {|lport, lport_uid|
next if lport.empty?
lport_uid += 12
port_uid = neteq['linecards'].length > 1 ? "#{linecard_uid}_#{lport_uid}" : lport_uid
port_name = linecard["snmp_pattern"].sub("%LINECARD%",linecard_uid.to_s).sub("%PORT%",lport_uid.to_s)
port_name = lport['snmp_name']
# TODO: Handle secondary interface
port_node = lport['uid']
-%>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment