Commit 3383e16
refactor: Remove backward compat layer from UpdateCollection
- Remove auto-wrapping of bare NLRIs in UpdateCollection.__init__
- Change type signature to enforce list[RoutedNLRI] for announces
- Update all 28 fuzz tests to use create_routed_nlri() helper
- Withdraws continue to use bare NLRI (correct behavior)
All callers now must explicitly use RoutedNLRI for announces.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c9eafc7 commit 3383e16
File tree
2 files changed
+88
-95
lines changed- src/exabgp/bgp/message/update
- tests/fuzz
2 files changed
+88
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 109 | + | |
121 | 110 | | |
122 | 111 | | |
123 | 112 | | |
| |||
0 commit comments