Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor_change] Fix BGP peer rn on non-infra peers (DCNE-294) #717

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

edudppaz
Copy link
Contributor

@edudppaz edudppaz commented Jan 22, 2025

APIC (tested on v5.2+) expects the rn for the PeerP and addresses on the same format as the infra bgp peer (said, enclosed by []), this also allows a prefix to be defined for BGP dynamic neighbors.

From APIC API:

payload{"bgpPeerP":{"attributes":{"dn":"uni/tn-tn_cml/out-l3out_lab-nettverk-srv_to_fw/lnodep-l3out_lab-nettverk-srv_to_fw-NP/lifp-l3out_lab-nettverk-srv_to_fw-IP/rspathL3OutAtt-[topology/pod-1/protpaths-101-102/pathep-[VPC-101_102_4]]/peerP-[10.1.1.0/24]","addrTCtrl":"af-ucast","addr":"10.1.1.0/24","rn":"peerP-[10.1.1.0/24]","status":"created"},"children":[]}}

Non-prefix:

payload{"bgpPeerP":{"attributes":{"dn":"uni/tn-tn_cml/out-l3out_lab-nettverk-srv_to_fw/lnodep-l3out_lab-nettverk-srv_to_fw-NP/lifp-l3out_lab-nettverk-srv_to_fw-IP/rspathL3OutAtt-[topology/pod-1/protpaths-101-102/pathep-[VPC-101_102_4]]/peerP-[1.1.1.1]","addrTCtrl":"af-ucast","addr":"1.1.1.1","rn":"peerP-[1.1.1.1]","status":"created"},"children":[]}}

Right now the URL is being built as:
uni/tn-tn_cml/out-l3out_lab-nettverk-srv_to_fw/lnodep-l3out_lab-nettverk-srv_to_fw-NP/lifp-l3out_lab-nettverk-srv_to_fw-IP/rspathL3OutAtt-[topology/pod-1/protpaths-101-102/pathep-[VPC-101_102_4]]/peerP-1.1.1.1

This is accepted by the APIC but fails when trying to configure a prefix for dynamic bgp neighbors

@edudppaz edudppaz marked this pull request as ready for review January 22, 2025 11:57
@akinross akinross added the jira-sync Sync this issue to Jira label Jan 22, 2025
@github-actions github-actions bot changed the title [minor_change] Fix BGP peer rn on non-infra peers [minor_change] Fix BGP peer rn on non-infra peers (DCNE-294) Jan 22, 2025
@akinross akinross self-requested a review February 3, 2025 08:44
Copy link
Collaborator

@akinross akinross left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-sync Sync this issue to Jira
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants