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

Extract local AS from peer xml #245

Merged
merged 1 commit into from
Jun 9, 2024
Merged

Conversation

mraerino
Copy link
Contributor

@mraerino mraerino commented Jun 1, 2024

When running this against an MX204 the local_as in bgp_session_info stays 0 - looks like the local ASN is on the peer level instead in this case:

<rpc-reply xmlns:junos="http://xml.juniper.net/junos/23.4R1-S1.5/junos">
    <bgp-information xmlns="http://xml.juniper.net/junos/23.4R0/junos-routing">
        <bgp-peer junos:style="detail">
            <peer-address>129.143.109.0+179</peer-address>
            <peer-as>553</peer-as>
            <local-address>129.143.109.1+63080</local-address>
            <local-as>215185</local-as>

@mraerino mraerino requested a review from czerwonk as a code owner June 1, 2024 13:30
Copy link
Owner

@czerwonk czerwonk left a comment

Choose a reason for hiding this comment

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

LGTM

@czerwonk czerwonk merged commit 5f0230e into czerwonk:main Jun 9, 2024
3 checks passed
@czerwonk
Copy link
Owner

czerwonk commented Jun 9, 2024

Thanks for your contribution! :)

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