Skip to content

[IOS-XE] ShowBgpNeighborsAdvertisedRoutesSuperParser broken if no device connection exists #959

@gramik151

Description

@gramik151

When trying to use 'ShowBgpNeighborsAdvertisedRoutesSuperParser' in iosxe/show_bgp.py, but without an active 'device' object (i.e., passing CLI output obtained elsewhere), the code fails. I believe the section starting on line 4327 needs to be indented one level, so that the attempt to learn the VRF is only done if 'vrf' does not exist / is not passed as an argument.

By moving lines 4327 through 4345 underneath the if block, and passing vrf='default', the code works for me.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions