Skip to content

junos_policy_color: un-sickbay now that color and color2 are modeled - #256

Merged
dhalperi merged 1 commit into
batfish:mainfrom
anothermattbrown:junos-policy-color-unsickbay
Nov 19, 2026
Merged

dhalperi merged 1 commit into
batfish:mainfrom
anothermattbrown:junos-policy-color-unsickbay

Conversation

@anothermattbrown

@anothermattbrown anothermattbrown commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Removes the junos_policy_color sickbay now that batfish/batfish#10490 (with #10489) has landed: it converts Junos color and color2 and fixes the data plane failure from from color (batfish/batfish#10488).

The entries were dont_run, so they never XPASS on their own; this removes them explicitly. Against current batfish master: 19 passed, 0 failed.

@codecov-commenter

codecov-commenter commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.91%. Comparing base (9657449) to head (9bcb7f0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #256   +/-   ##
=======================================
  Coverage   82.91%   82.91%           
=======================================
  Files          97       97           
  Lines        4536     4536           
=======================================
  Hits         3761     3761           
  Misses        775      775           
Flag Coverage Δ
unittests 82.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anothermattbrown
anothermattbrown force-pushed the junos-policy-color-unsickbay branch from f031f5d to 4188883 Compare November 14, 2026 00:24
dhalperi pushed a commit to batfish/batfish that referenced this pull request Nov 16, 2026
Fixes the policy part of #10488. Before, a term with `from color` made
the data plane computation fail, `from color2` was not parsed, and `then
color` was ignored. `then color add`, `subtract` and `apply`, and a
static route's `color`/`color2`, remain unsupported.

Lab: batfish/lab-validation#254 (`junos_policy_color`, vJunos 26.2) is
sickbayed on #10488; with this PR all its tests pass, and
batfish/lab-validation#256 removes the sickbay.
batfish/lab-validation#255 (`junos_bgp_color_selection`) still passes:
colors do not affect selection.
@anothermattbrown
anothermattbrown force-pushed the junos-policy-color-unsickbay branch from 4188883 to ac77574 Compare November 18, 2026 19:10
batfish/batfish#10490 (with #10489) converts Junos color and color2 and
fixes the data plane failure from `from color` (batfish/batfish#10488);
every test passes with it.
@anothermattbrown
anothermattbrown force-pushed the junos-policy-color-unsickbay branch from ac77574 to 9bcb7f0 Compare November 19, 2026 20:24
@dhalperi
dhalperi enabled auto-merge (squash) November 19, 2026 20:32
@dhalperi
dhalperi merged commit dbfe989 into batfish:main Nov 19, 2026
156 checks passed
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.

3 participants