WYAE - FWTOOLS Mailing List Archive


Re: [fwtools] FWdoc 10.6.6 released
From:Ken Welsh
Date: Wed, 9 Jun 2010 10:47:50 +1000

Volker, et al,

Firstly, thank you all for updating fwdoc.

Secondly, I ran them against some rulesets I have and found an error with 
the HTML output when you have NAT rules where it was formatting the first 
rule fine but not the second rule so I have made a change to my 
fwdoc_to_html.py file as shown below which now formats the NAT rules more 
clearly.

**************   Before   ************************************

    print ''
    print "%s" % rule['comment']
    print "
LEGEND: Address Translation Methods: S: Static, H: Hide/Masq

" except: # workaround by Neil Burt print "
NO NAT RULES.

" bgcolorflag = 1 print """

 

************** After ************************************ print '' print "%s" % rule['comment'] except: # workaround by Neil Burt print "
NO NAT RULES.

" print "
LEGEND: Address Translation Methods: S: Static, H: Hide/Masq

" bgcolorflag = 1 print """

 

Thirdly, I also make a change to the following parts of my fwdoc_to_html.py file to change the font size of the header lines: ************** Access Rule Header Before ************************************ %s """ % rule['header'] ************** Access Rule Header After ************************************ %s """ % rule['header'] ************** NAT Rule Header Before ************************************ %s """ % rule['header'] ************** NAT Rule Header After ************************************ %s """ % rule['header'] Regards, Ken Welsh. Please consider our environment before printing this email. WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately. It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments. This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision. Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency. Westpac Banking Corporation ABN 33 007 457 141.