#309 missing Device Port VLAN Mismatch CSV template
This commit is contained in:
3
Changes
3
Changes
@@ -1,8 +1,9 @@
|
|||||||
2.035007 -
|
2.036000 -
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* Add SSL development library to Release Notes
|
* Add SSL development library to Release Notes
|
||||||
|
* #309 missing Device Port VLAN Mismatch CSV template
|
||||||
|
|
||||||
2.035006 - 2017-04-29
|
2.035006 - 2017-04-29
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ get '/ajax/content/report/portvlanmismatch' => require_login sub {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
header( 'Content-Type' => 'text/comma-separated-values' );
|
header( 'Content-Type' => 'text/comma-separated-values' );
|
||||||
template 'ajax/report/portvlanmismatch.tt', { results => \@results, },
|
template 'ajax/report/portvlanmismatch_csv.tt', { results => \@results, },
|
||||||
{ layout => undef };
|
{ layout => undef };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
14
share/views/ajax/report/portvlanmismatch_csv.tt
Normal file
14
share/views/ajax/report/portvlanmismatch_csv.tt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[% USE CSV -%]
|
||||||
|
[% CSV.dump([ 'Left Device' 'Left Port' 'Left VLANs' 'Right Device', 'RightPort', 'Right VLANs' ]) %]
|
||||||
|
|
||||||
|
[% FOREACH row IN results %]
|
||||||
|
[% mylist = [] %]
|
||||||
|
[% mylist.push(row.left_device) %]
|
||||||
|
[% mylist.push(row.left_port) %]
|
||||||
|
[% mylist.push(row.left_vlans) %]
|
||||||
|
[% mylist.push(row.right_device) %]
|
||||||
|
[% mylist.push(row.right_port) %]
|
||||||
|
[% mylist.push(row.right_vlans) %]
|
||||||
|
[% CSV.dump(mylist) %]
|
||||||
|
|
||||||
|
[% END %]
|
||||||
Reference in New Issue
Block a user