Commit a072126
Fix: FlowSpec API flat syntax broken after action dict removal
The route() function in flow/__init__.py was using ParseFlow.action dict
to look up actions for commands like 'destination', 'discard', 'interface-set'.
Commit f3587b1 removed action dicts from ParseFlowMatch/Then/Scope as part
of schema-first refactoring, but ParseFlow.action was built from those dicts,
causing KeyError when parsing flat API syntax like:
announce flow route destination 133.130.1.219/32 discard interface-set [...]
Fix: Use schema-based action lookup via _get_route_action() method instead
of the now-empty ParseFlow.action dict.
Also removes test E from FLAKY_TESTS since the underlying bug is now fixed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 298c13c commit a072126
2 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
58 | 69 | | |
59 | 70 | | |
60 | 71 | | |
| |||
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
87 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
88 | 101 | | |
89 | 102 | | |
90 | 103 | | |
| |||
0 commit comments