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

Added support for parsing NX-OS NetFlow stanzas #5646

Merged
merged 3 commits into from
Mar 23, 2020

Conversation

agember
Copy link
Contributor

@agember agember commented Mar 23, 2020

Parsing support for this was motivated by the inclusion of a version statement in a flow exporter stanza. Without this support, parser recovery treats the version statement as a top-level version statement (which I believe negatively impacts vendor detection). As an added benefit, there is now missing reference tracking for NetFlow-related configuration.

@batfish-bot
Copy link

This change is Reviewable

@dhalperi dhalperi self-requested a review March 23, 2020 17:40
Copy link
Member

@dhalperi dhalperi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8 of 8 files at r1, 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @agember)


projects/batfish/src/test/resources/org/batfish/grammar/cisco_nxos/testconfigs/nxos_flow, line 8 at r1 (raw file):

source Ethernet1/1

Add as interface reference?

@arifogel is it obvious the right way to do this? There's no previous keyword to look at...

@codecov
Copy link

codecov bot commented Mar 23, 2020

Codecov Report

Merging #5646 into master will decrease coverage by 0.00%.
The diff coverage is 87.50%.

@@             Coverage Diff              @@
##             master    #5646      +/-   ##
============================================
- Coverage     73.78%   73.78%   -0.01%     
- Complexity    32899    32905       +6     
============================================
  Files          2667     2667              
  Lines        131612   131660      +48     
  Branches      15704    15707       +3     
============================================
+ Hits          97106    97139      +33     
- Misses        26840    26852      +12     
- Partials       7666     7669       +3     
Impacted Files Coverage Δ Complexity Δ
...mar/cisco_nxos/CiscoNxosControlPlaneExtractor.java 76.10% <85.71%> (+0.11%) 1018.00 <12.00> (+12.00)
...resentation/cisco_nxos/CiscoNxosStructureType.java 100.00% <100.00%> (ø) 3.00 <0.00> (ø)
...esentation/cisco_nxos/CiscoNxosStructureUsage.java 100.00% <100.00%> (ø) 3.00 <0.00> (ø)
.../src/main/java/org/batfish/datamodel/flow/Hop.java 53.33% <0.00%> (-6.67%) 5.00% <0.00%> (-1.00%)
...rc/main/java/org/batfish/datamodel/flow/Trace.java 87.09% <0.00%> (-3.23%) 12.00% <0.00%> (-1.00%)
...col/src/main/java/org/batfish/role/InferRoles.java 89.54% <0.00%> (-1.37%) 50.00% <0.00%> (-1.00%)
...src/main/java/org/batfish/coordinator/PoolMgr.java 64.04% <0.00%> (-1.13%) 15.00% <0.00%> (-1.00%)
...tfish/representation/cisco/CiscoConfiguration.java 86.09% <0.00%> (-0.12%) 548.00% <0.00%> (-1.00%)

Copy link
Member

@dhalperi dhalperi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

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

3 participants