s3u / capirca

Automatically exported from code.google.com/p/capirca
Apache License 2.0
0 stars 0 forks source link

only the first target::cisco is processed (aclgen.py) #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. runaclgen.py in a standard, unmodified install

What is the expected output? What do you see instead?
In filters/sample.acl only the inbound acl are generated (first
target::cisco). Work-a-round is to split /policies/sample.pol into two
files. One with the inbound policies and one with the outbound policies.

What version of the product are you using? On what operating system?
svn rev 98 (issue exists since rev_76 ?: cisco:mixed implementation)
OS: ubuntu 9.10

Please provide any additional information below.

Original issue reported on code.google.com by rhh...@gmail.com on 4 Jun 2010 at 12:10

GoogleCodeExporter commented 9 years ago
Final target_header and return statement in __str__ of Cisco class in cisco.py 
are indented too far. This causes the function to return after only the first 
filter is processed. Attached patch fixes this issue.

Original comment by matej.va...@gmail.com on 6 Jan 2011 at 3:23

Attachments:

GoogleCodeExporter commented 9 years ago
This appears to be working correctly now.  If you still notice problems, please 
advise.
Thanks for the feedback.

Original comment by watson@google.com on 12 Jul 2011 at 7:38