MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit d55912b3 authored by Simon Delamare's avatar Simon Delamare
Browse files

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

parent 1e9353f2
...@@ -10,9 +10,8 @@ neteq.fetch('metrics', []).each {|metric| ...@@ -10,9 +10,8 @@ neteq.fetch('metrics', []).each {|metric|
neteq['linecards'].each_with_index {|linecard, linecard_uid| neteq['linecards'].each_with_index {|linecard, linecard_uid|
linecard.fetch('ports', []).each_with_index {|lport, lport_uid| linecard.fetch('ports', []).each_with_index {|lport, lport_uid|
next if lport.empty? next if lport.empty?
lport_uid += 12
port_uid = neteq['linecards'].length > 1 ? "#{linecard_uid}_#{lport_uid}" : lport_uid 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 # TODO: Handle secondary interface
port_node = lport['uid'] port_node = lport['uid']
-%> -%>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment