Skip to content

Commit

Permalink
Arista: port NX-OS route-map logic
Browse files Browse the repository at this point in the history
Prior to this PR, Arista modeled route-maps as nested structures, so that if
there were N terms, those terms would go into a recursive structure that was N
terms deep. For large N (hundreds+) this can cause recursion limits in Java,
e.g., in walking the route-map or in serializing it to disk.

Fix this by adopting (neearly verbatim) the logic from NX-OS.

Validated by existing unit tests + Batfish Enterprise compare view: routes are
the same before and after in many real networks.
  • Loading branch information
dhalperi committed Dec 2, 2020
1 parent d8b563d commit f522a52
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 152 deletions.

0 comments on commit f522a52

Please sign in to comment.