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

FRR: Extract and convert match as-path #4906

Merged
merged 2 commits into from
Oct 8, 2019
Merged

Conversation

corinaminer
Copy link
Contributor

No description provided.

@batfish-bot
Copy link

This change is Reviewable

Copy link
Contributor Author

@corinaminer corinaminer 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 7 files reviewed, 2 unresolved discussions (waiting on @progwriter and @yifeiyuan)


projects/batfish/src/main/java/org/batfish/grammar/cumulus_frr/CumulusFrrConfigurationBuilder.java, line 692 at r1 (raw file):

  public void exitRmm_as_path(Rmm_as_pathContext ctx) {
    String name = ctx.name.getText();
    _currentRouteMapEntry.setMatchAsPath(new RouteMapMatchAsPath(name));

based on GNS3 experimentation it doesn't look like multiple as-path access lists can have an effect in the same route-map term


projects/batfish/src/main/java/org/batfish/representation/cumulus/CumulusNcluConfiguration.java, line 1100 at r1 (raw file):

    markConcreteStructure(CumulusStructureType.INTERFACE);
    markConcreteStructure(
        CumulusStructureType.IP_AS_PATH_ACCESS_LIST, CumulusStructureUsage.ROUTE_MAP_MATCH_AS_PATH);

why don't any of the other markConcreteStructure() calls include usages?

@codecov
Copy link

codecov bot commented Oct 8, 2019

Codecov Report

Merging #4906 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #4906      +/-   ##
============================================
+ Coverage     76.33%   76.33%   +<.01%     
- Complexity    29281    29283       +2     
============================================
  Files          2321     2322       +1     
  Lines        113195   113211      +16     
  Branches      13489    13489              
============================================
+ Hits          86402    86415      +13     
- Misses        20215    20216       +1     
- Partials       6578     6580       +2
Impacted Files Coverage Δ Complexity Δ
...ar/cumulus_frr/CumulusFrrConfigurationBuilder.java 81.23% <100%> (+0.24%) 96 <1> (+1) ⬆️
...sh/representation/cumulus/RouteMapMatchAsPath.java 100% <100%> (ø) 4 <4> (?)
.../representation/cumulus/CumulusStructureUsage.java 100% <100%> (ø) 3 <0> (ø) ⬇️
...presentation/cumulus/CumulusNcluConfiguration.java 92.74% <100%> (ø) 232 <0> (ø) ⬇️
.../batfish/representation/cumulus/RouteMapEntry.java 100% <100%> (ø) 31 <3> (+2) ⬆️
.../src/main/java/org/batfish/datamodel/flow/Hop.java 53.33% <0%> (-6.67%) 5% <0%> (-1%)
...java/org/batfish/symbolic/state/EdgeStateExpr.java 73.91% <0%> (-4.35%) 10% <0%> (-1%)
...rc/main/java/org/batfish/datamodel/flow/Trace.java 87.09% <0%> (-3.23%) 11% <0%> (-2%)
...org/batfish/datamodel/flow/BidirectionalTrace.java 81.81% <0%> (-2.28%) 14% <0%> (-1%)
...col/src/main/java/org/batfish/role/InferRoles.java 90.15% <0%> (-1.52%) 63% <0%> (-2%)
... and 8 more

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 7 of 7 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @corinaminer, @progwriter, and @yifeiyuan)


projects/batfish/src/main/java/org/batfish/representation/cumulus/CumulusNcluConfiguration.java, line 1100 at r1 (raw file):

Previously, corinaminer (Corina Miner) wrote…

why don't any of the other markConcreteStructure() calls include usages?

No longer required -- follow the link for one of the other marks.

Copy link
Contributor Author

@corinaminer corinaminer 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: all files reviewed, 1 unresolved discussion (waiting on @progwriter and @yifeiyuan)


projects/batfish/src/main/java/org/batfish/representation/cumulus/CumulusNcluConfiguration.java, line 1100 at r1 (raw file):

Previously, dhalperi (Dan Halperin) wrote…

No longer required -- follow the link for one of the other marks.

Nice, got it

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 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @progwriter and @yifeiyuan)

@corinaminer corinaminer merged commit a233d0b into master Oct 8, 2019
@corinaminer corinaminer deleted the frr-match-as-path branch October 8, 2019 20:44
@progwriter progwriter mentioned this pull request Oct 8, 2019
8 tasks
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