Skip to content

Commit

Permalink
PoE temperature is shown as zero (#38)
Browse files Browse the repository at this point in the history
Authored-by: Rohini Kumar Tharigonda <rohini.kumar.tharigo@force10networks.com>
  • Loading branch information
rohinikumart authored and GitHub Enterprise committed Feb 17, 2022
1 parent ec6a4c0 commit 4072024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CLI/renderer/templates/show_poe.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% for i in range(ports_oper_info.__len__()) %}
{% set port_info = ports_oper_info[i] %}
{% set diags_info = ports_oper_info[i].get('openconfig-if-poe-ext:diagnostics', {}) %}
{{'%-13s'|format(port_info['ifname'])}} {{'%-10s'|format(port_info.get('openconfig-if-poe-ext:power-class-requested', 'Unknown'))}} {{'%-10s'|format(port_info.get('power-class', 'Unknown'))}} {{'%-8s'|format(port_info['power-used'])}} {{'%-9s'|format(port_info['openconfig-if-poe-ext:output-current'])}} {{'%-9s'|format(port_info['openconfig-if-poe-ext:output-voltage'])}} {{'%-6s'|format(diags_info.get('temperature',''))}} {{'%-17s'|format(port_info['openconfig-if-poe-ext:status']|poe_enum2str)}} {{'%-18s'|format(port_info['openconfig-if-poe-ext:fault-code']|poe_enum2str)}}
{{'%-13s'|format(port_info['ifname'])}} {{'%-10s'|format(port_info.get('openconfig-if-poe-ext:power-class-requested', 'Unknown'))}} {{'%-10s'|format(port_info.get('power-class', 'Unknown'))}} {{'%-8s'|format(port_info['power-used'])}} {{'%-9s'|format(port_info['openconfig-if-poe-ext:output-current'])}} {{'%-9s'|format(port_info['openconfig-if-poe-ext:output-voltage'])}} {{'%-6s'|format(diags_info.get('temperature','N/A'))}} {{'%-17s'|format(port_info['openconfig-if-poe-ext:status']|poe_enum2str)}} {{'%-18s'|format(port_info['openconfig-if-poe-ext:fault-code']|poe_enum2str)}}
{% endfor %}
{%endif%}
{% set port_stats = json_output['stats_info'] %}
Expand Down

0 comments on commit 4072024

Please sign in to comment.