From 9bcb7f02bb59d3722752a1a53b0d6f9122b11976 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Sat, 14 Nov 2026 00:24:46 +0000 Subject: [PATCH] junos_policy_color: un-sickbay now that color and color2 are modeled 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. --- snapshots/junos_policy_color/source/README.md | 11 ++++---- .../validation/sickbay.yaml | 26 ------------------- 2 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 snapshots/junos_policy_color/validation/sickbay.yaml diff --git a/snapshots/junos_policy_color/source/README.md b/snapshots/junos_policy_color/source/README.md index 8841fff..9937f7c 100644 --- a/snapshots/junos_policy_color/source/README.md +++ b/snapshots/junos_policy_color/source/README.md @@ -50,9 +50,8 @@ dut advertises 3 routes. So color and color2 behave like tag2: ## Batfish -On master (batfish/batfish#10488), `from color` converts to `MatchColor`, -whose evaluation throws ("No implementation for MatchColor.evaluate()"), -so the data plane computation fails. `from color2` is not parsed, and -`then color` and `then color2` are ignored. -The data plane tests are sickbayed with `dont_run`, since the failure is -in the data plane fixture. +On master before batfish/batfish#10490 (batfish/batfish#10488), `from +color` made the data plane computation fail, `from color2` was not +parsed, and `then color` and `then color2` were ignored. With +batfish/batfish#10490 (stacked on #10489, which adds color and color2 to +BGP routes), Batfish matches every route. diff --git a/snapshots/junos_policy_color/validation/sickbay.yaml b/snapshots/junos_policy_color/validation/sickbay.yaml deleted file mode 100644 index 988285e..0000000 --- a/snapshots/junos_policy_color/validation/sickbay.yaml +++ /dev/null @@ -1,26 +0,0 @@ -entries: - # batfish#10488: `from color` makes the data plane computation fail on - # master (MatchColor.evaluate throws), so every data plane test fails. - # Without the crash, `from color2`, `then color`, `then color2` and a - # static route's color are also unmodeled. dont_run: the crash is in the - # data plane fixture, before the test body, so xfail cannot catch it. - - hostname: ".*" - test_name: test_interface_properties - skip: - skip_type: dont_run - reason: "https://github.com/batfish/batfish/issues/10488" - - hostname: ".*" - test_name: test_main_rib_routes - skip: - skip_type: dont_run - reason: "https://github.com/batfish/batfish/issues/10488" - - hostname: ".*" - test_name: test_bgp_rib_routes - skip: - skip_type: dont_run - reason: "https://github.com/batfish/batfish/issues/10488" - - hostname: ".*" - test_name: test_evpn_rib_routes - skip: - skip_type: dont_run - reason: "https://github.com/batfish/batfish/issues/10488"