bgp: Extend route policy matching with match types#3
bgp: Extend route policy matching with match types#3MitchLewis930 wants to merge 1 commit intopr_043_beforefrom
Conversation
Extends the internal route policy API with 3 specific prefix / neighbor match types (any / all / invert) to support more flexible route policies for future developments. Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
User description
PR_043
PR Type
Enhancement
Description
Restructure route policy matching with dedicated match type wrappers
Add three match types (any/all/invert) for flexible prefix/neighbor matching
Update API models and conversions to support new match structures
Refactor internal types from slices to wrapped match objects
Diagram Walkthrough
File Walkthrough
15 files
Add match types and restructure match conditionsRename PolicyPrefixMatchList to PolicyPrefixListAdd match type conversion functions for GoBGPAdd API conversion functions for match typesUpdate formatters for new match structuresUpdate statement model with wrapped matchesNew model for neighbor match with type fieldRestructure prefix match with type and prefixesNew model for individual prefix definitionNew enum model for match type valuesUpdate policy creation for wrapped matchesUpdate service policy generation for new typesUpdate pod CIDR policy for new match typesUpdate IP pool policy for wrapped matchesUpdate interface policy for new match structures7 files
Update tests for new match type structuresUpdate fixtures with wrapped match objectsUpdate policy tests with new match structuresUpdate service tests with wrapped matchesUpdate pod CIDR tests with new structuresUpdate IP pool tests with new match typesUpdate interface tests with wrapped matches1 files
Regenerate deepequal for new match types2 files
Update OpenAPI spec with new match structuresUpdate YAML spec with match type definitions