Skip to content
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

Fix some missing structure references #412

Merged
merged 3 commits into from
Sep 7, 2017

Conversation

dhalperi
Copy link
Member

@dhalperi dhalperi commented Sep 6, 2017

Questions:

  • When do we use CiscoStructureType.IPV4_ACCESS_LIST vs IP_ACCESS_LIST? It looks like CiscoStructureType.IP_ACCESS_LIST_EXTENDED is never used, nor is CiscoStructureType.IP_ACCESS_LIST_STANDARD.

  • (aka, should these be registered as IPV4 or IP)

  • What determines which types of structures we "mark references to IPv4/6 ACLs that may not appear in data model". Why do we not mark all references, regardless of whether they appear in the data model? Only mildly redundant work.

@dhalperi
Copy link
Member Author

dhalperi commented Sep 6, 2017

Note that referencing the NAT pool and ACL here does not actually have any affect, because we handle their references completely differently: https://github.com/batfish/batfish/blob/master/projects/batfish/src/main/java/org/batfish/representation/cisco/CiscoConfiguration.java#L1974

I can't quite understand when we use which method.

There are two SNAT rules, one with a defined ACL one with an undefined ACL.

The defined ACL is marked as used, and the undefined ACL is marked as
undefined.
@dhalperi dhalperi merged commit 4f57e1c into batfish:master Sep 7, 2017
@dhalperi dhalperi deleted the reference-some-structures branch September 7, 2017 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants