commit 4b6f3de36cbf508c05fbf7f18acee1758bc838ed
Merge: 94ed8b8 200dd2d
Author: Eric A. Miller <emiller@cpan.org>
Date: Mon Nov 4 19:30:04 2013 -0500
Merge branch 'master' into em-poe-report
commit 94ed8b8cf01963030a40829fd71bff529750719e
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Nov 3 23:34:07 2013 -0500
Show PoE module statistics in device details if available
commit 652974b312c11d6017cf6f3c0693d62085774e80
Author: Eric A. Miller <emiller@cpan.org>
Date: Sun Nov 3 23:31:02 2013 -0500
Move PoE statistics to model from controller
Add missing div in PoE status report
commit f94f68b1c84d23b2f252d985509757d95be5c0d0
Author: Eric A. Miller <emiller@cpan.org>
Date: Tue Oct 22 22:38:45 2013 -0400
Device PoE status report
25 lines
886 B
Plaintext
25 lines
886 B
Plaintext
[% USE CSV -%]
|
|
[% CSV.dump([ 'Device' 'Model' 'Device Location' 'PoE Module' 'Power (W)'
|
|
'Supply' 'Capable Ports' 'Powered Ports' 'Disabled Ports'
|
|
'Errored Ports' 'Committed (W)' 'Delivering (W)' ]) %]
|
|
|
|
[% FOREACH row IN results %]
|
|
[% NEXT UNLESS row.power_modules.size %]
|
|
[% mydlist = [] %]
|
|
[% mydevice = row.dns || row.name %]
|
|
[% mydlist.push(mydevice) %]
|
|
[% mydlist.push(row.model) %]
|
|
[% mydlist.push(row.location) %]
|
|
[% FOREACH m IN row.power_modules %]
|
|
[% myplist = [] %]
|
|
[% FOREACH col IN [ m.module m.power m.status m.capable_ports
|
|
m.powered_ports m.disabled_ports m.errored_ports
|
|
m.pwr_committed m.pwr_delivering
|
|
] %]
|
|
[% myplist.push(col) %]
|
|
[% END %]
|
|
[% CALL mydlist.splice(3, 9, myplist ) %]
|
|
[% CSV.dump(mydlist) %]
|
|
|
|
[% END %]
|
|
[%END%] |