WYAE - FWTOOLS Mailing List Archive
| Re: [fwtools] Bug found! New version of fw1r55_to_fwdoc
|
| From: | "J.D. Baldwin" |
| Date: | Wed, 25 Jul 2007 13:42:41 -0400
|
I wrote:
> I posted a sanitized version of the file causing the error at
>
> http://www.panix.com/~baldwin/sanitized.jns.gz
Through a little judicious Python debugging (a new experience for
me!), I figured out that the problem lies in the "install_on" fields
of fw1r55_to_fwdoc's output. The elements of "install_on" are not
comma-separated, e.g.,
"accessrules": [
{
"number": "1",
"enabled": "yes",
"from": [
{"object": "Any" }
],
"from_inverted": "no",
"to": [
"fraqhfb_rvag"
],
"to_inverted": "no",
"services": [
{"layer3": "Any" }
],
"services_inverted": "no",
"action": "reject",
"action_qualifier": "",
"log": "SnmpTrap",
"time": "Any",
"install_on": [
{
"firewall": "hbngxam_syhms",
"interface": [ "Any" ],
"method": "fw1"
} <==== MISSING COMMA GOES HERE
{
"firewall": "sgmebdbw_wnsnft",
"interface": [ "Any" ],
"method": "fw1"
}
],
"comment": "abc def ghi"
}
I hope someone has the Python knowledge to come up with a patch, because
it isn't me.
--
_+_ From the catapult of |If anyone disagrees with any statement I make, I
_|70|___:)=}- J.D. Baldwin |am quite prepared not only to retract it, but also
\ / baldwin@panix.com|to deny under oath that I ever made it. -T. Lehrer
***~~~~-----------------------------------------------------------------------