Skip to content

IOS XR BGP standard community lists#3177

Merged
ipspace merged 3 commits intodevfrom
xr-std-clist
Mar 6, 2026
Merged

IOS XR BGP standard community lists#3177
ipspace merged 3 commits intodevfrom
xr-std-clist

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Mar 6, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Cisco IOS XR support for standard BGP community-lists (“community-sets”) and enables using them in routing policy match clauses, aligning device feature flags and documentation with the new capability.

Changes:

  • Enable IOS XR feature flags for standard community lists and routing-policy community matching.
  • Implement IOS XR community-list normalization/quirks and route-policy object splitting logic for community lists.
  • Add IOS XR Ansible templates to render community-sets and route-policy community match conditions; update docs for platform support matrices.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
netsim/devices/xr.yml Declares IOS XR support for standard community lists and policy match.community.standard.
netsim/devices/iosxr.py Extends IOS XR quirks to validate/adjust community-list entries and split mixed permit/deny lists for policy rendering.
netsim/ansible/templates/routing/iosxr/policy-match.j2 Adds route-policy match rendering for community and split permit/deny community matching.
netsim/ansible/templates/routing/iosxr/clist.j2 New template to render IOS XR community-set definitions from routing.community.
netsim/ansible/templates/routing/iosxr.j2 Includes the new community-set template when routing.community is present.
docs/module/routing-policy.txt Updates IOS XR routing-policy match matrix to show standard community support.
docs/module/routing-clist.txt Adds IOS XR to the community-filter platform support table and fixes IOS/XE naming.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Comment on lines +98 to +101
"""
Check the values in community list entries
"""
def clist_check(node: Box) -> None:
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The triple-quoted string immediately before clist_check is a standalone module-level string literal (not a function docstring) and becomes a no-op constant at import time; convert it to a # comment or move it inside clist_check as its docstring to avoid misleading documentation and lint noise.

Suggested change
"""
Check the values in community list entries
"""
def clist_check(node: Box) -> None:
def clist_check(node: Box) -> None:
"""
Check the values in community list entries.
"""

Copilot uses AI. Check for mistakes.
@ipspace ipspace merged commit 0ed9d4d into dev Mar 6, 2026
12 checks passed
@ipspace ipspace deleted the xr-std-clist branch March 6, 2026 10:28
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.

2 participants