-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project cisco acl parsing #14
Conversation
simply copied. Mainly, the Cisco parser uses indentation to group the related rules under a name. Whereas the ASA parser uses a new line for each rule.
…d into project-cisco-acl-parsing
…d into project-cisco-acl-parsing
…d into project-cisco-acl-parsing
All parsing will currently only be done against extended rules. Standard rules are logged as unsups.
handles (rules added in comments around parser logic).
…d into project-cisco-acl-parsing
still. There is also some clean up that can be done with merging rules and returning data rather than calling functions for every sub-rule.
testing to auto-populate
There are a few things left to do: - Use setWildcardMask (dummy implementation done) - Create parser for ip access-group - Create save logic in tool - Verify everything is saving correctly and looks the same as ASA parser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to resolve comments and suggestions before merging.
My review is done, and I've changed everything but the last two items above that I want your input on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See targeted notes for change info.
…sion has an extra 'any' Im figuring out
…ought they would be implictly returned
…ot translate as well to the other cisco parsers as I thought
… local and relate to interface next
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that covers all requested changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. Regression looks good.
Closes #4
This PR includes the following enhancements to nmdb-import-cisco :
access-list
rulesaccess-list extended
information into NetBooks, ServiceBooks, and RuleBooksaccess-group
information to show which rules are applied to a given interfaceIpNetwork::setWildcardMask
for contiguous masksThis PR does NOT include the following:
access-list standard' information (logged as
Notable`)AcRule
s that have been defined but not applied (logged asNotable
)global
)