[cisco-stats] Print legend at the end of generate_cisco_port_configuration_overview...
authorMaximilian Wilhelm <max@rfc2324.org>
Sun, 6 Jan 2008 00:43:33 +0000 (01:43 +0100)
committerMaximilian Wilhelm <max@rfc2324.org>
Sun, 6 Jan 2008 00:43:33 +0000 (01:43 +0100)
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

cisco-stats/generate_cisco_port_configuration_overview

index 44f3685..470aed3 100755 (executable)
@@ -427,6 +427,8 @@ print '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1
                border: 2px solid black;
                empty-cells: show;
                border-collapse: collapse;
+
+               margin-bottom: 42px;
          }
 
          td {
@@ -514,7 +516,29 @@ foreach my $int_type (sort keys %{$interfaces}) {
        print "\n";
 }
 
+# Print legend, valid HTML/CSS buttons and close HTML # {{{
 print '
+        <h3>Legend</h3>
+        <p>
+         All interface names follow the following convention:
+         <blockquote>
+          InterfaceName <i>(InterfaceDescription)</i> [<i>UNLIMITED </i>InterfaceType]  <i>[Channelgrp InterfaceChannelGroupNumber]</i>
+         </blockquote>
+
+         All things written in italc font are optional and only shown when found in configuration. <br>
+        </p>
+        <p>
+         <code>InterfaceType</code> is one of <code>access</code> of <code>trunk</code>. <br>
+         The keyword <code>UNLIMITED</code> indicates that there is no vlan restriction set on the interface.
+        </p>
+        <p>
+         All other occurances of <code>Interface...</code> will be replaced by the corresponding value found in the configuration.
+        </p>
+        <p>
+         Lines cancled out represent port which are administrativly <code>shutdown</code>.
+        </p>
+
+
         <p>
          <a href="http://validator.w3.org/check?uri=referer">
           <img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Strict" height="31" width="88">
@@ -526,5 +550,6 @@ print '
        </body>
 </html>
 ';
+# }}}
 
 # vim:foldmathod=marker