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

FlowTracer: create a trace when policy-based routing drops a packet #5747

Merged
merged 2 commits into from
May 3, 2020

Conversation

dhalperi
Copy link
Member

@dhalperi dhalperi commented May 2, 2020

No description provided.

@batfish-bot
Copy link

This change is Reviewable

Copy link
Member Author

@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.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @anothermattbrown and @progwriter)

a discussion (no related file):
Is there an obvious best way to test this?


Copy link
Contributor

@progwriter progwriter left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @anothermattbrown and @dhalperi)

a discussion (no related file):

Previously, dhalperi (Dan Halperin) wrote…

Is there an obvious best way to test this?

we only have e2e-ish tests so far 😞

You can expand If statement here for a different IP (to drop) https://github.com/batfish/batfish/blob/master/projects/allinone/src/test/java/org/batfish/question/traceroute/TraceroutePolicyBasedRoutingTest.java#L86-L93

then check for dropped trace


@codecov
Copy link

codecov bot commented May 2, 2020

Codecov Report

Merging #5747 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #5747      +/-   ##
============================================
- Coverage     71.43%   71.43%   -0.01%     
+ Complexity    33680    33673       -7     
============================================
  Files          2788     2788              
  Lines        139704   139705       +1     
  Branches      16794    16794              
============================================
- Hits          99800    99793       -7     
- Misses        32035    32037       +2     
- Partials       7869     7875       +6     
Impacted Files Coverage Δ Complexity Δ
...a/org/batfish/dataplane/traceroute/FlowTracer.java 91.63% <100.00%> (+0.40%) 87.00 <0.00> (ø)
...c/main/java/org/batfish/dataplane/rib/RibTree.java 89.58% <0.00%> (-4.17%) 27.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%)
...ain/java/org/batfish/symbolic/IngressLocation.java 65.78% <0.00%> (-2.64%) 15.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%)
...java/org/batfish/dataplane/ibdp/VirtualRouter.java 88.04% <0.00%> (-0.32%) 262.00% <0.00%> (-2.00%)

Copy link
Contributor

@anothermattbrown anothermattbrown left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, 2 of 2 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@dhalperi dhalperi merged commit 0d29d74 into batfish:master May 3, 2020
@dhalperi dhalperi deleted the pbr-drop branch May 3, 2020 18:14
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

4 participants