CiscoTestAutomation / genieparser

sub-component of Genie that parse the device output into structured datastructure
Apache License 2.0
248 stars 385 forks source link

IOS-XR show bgp sessions IPv6 neighbor wrap issue #132

Closed jrampley closed 4 years ago

jrampley commented 4 years ago

IOS-XR show bgp sessions and other bgp parsers that have IPv6 neighbor output need to support IPv6 neighbors that wrap onto two lines. With pyats 20.4 the below CLI output will not match one of the regex formats which results in no IPv6 neighbor parsed output.

2001:2001:0:8::6f9 default 0 65000 0 0 Established NSR Ready

xiaoxinz-cisco commented 4 years ago

Hi @jrampley

We fixed the issue and genie package v20.4.1b1 has been released with the fix.

We added two regex patterns, thus parser supports two-line outputs now: https://github.com/CiscoTestAutomation/genieparser/blob/master/src/genie/libs/parser/iosxr/show_bgp.py#L5376

If you're interested in developing parsers, here is our guide: https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/writeparser/writeparser.html#

Could you please run the following command and try again to see if it works?

Please try and let's know if there is an issue.

Thanks, Irene

jrampley commented 4 years ago

Hi Irene,

Yes that seems to have solved the issue. Thanks!

Jim

On 5/5/20, 4:06 PM, "xiaoxinz-cisco" notifications@github.com<mailto:notifications@github.com> wrote:

CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.

Hi @jrampleyhttps://github.com/jrampley

We fixed the issue and genie package v20.4.1b1 has been released with the fix.

We added two regex patterns, thus parser supports two-line outputs now: https://github.com/CiscoTestAutomation/genieparser/blob/master/src/genie/libs/parser/iosxr/show_bgp.py#L5376

If you're interested in developing parsers, here is our guide: https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/writeparser/writeparser.html#https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/writeparser/writeparser.html

Could you please run the following command and try again to see if it works? · pip install genie.libs.parser --upgrade --pre

Please try and let's know if there is an issue.

Thanks, Irene

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/CiscoTestAutomation/genieparser/issues/132#issuecomment-624306132, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD7WYEN62VYLRHIAG7PWPHTRQB5U7ANCNFSM4MUB5PCA. E-MAIL CONFIDENTIALITY NOTICE: The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.