Skip to content

verify:bmp crashes on Loc-RIB peer records #1081

Closed

Description

@privateip

Summary

task verify:bmp in the containerlab lab exits with a Python KeyError: 'remote_ip' before it checks any fabric-router session. The lab's fabric routers stream their Loc-RIB to the collector, and GoBMP logs a Peer Up for each Loc-RIB instance peer (RFC 9069) with no remote_ip, because that peer has no remote end. The script's parser indexes remote_ip on every Peer Up/Down record.

Steps to reproduce

  1. Deploy the lab from main with task deploy.
  2. Run task verify:bmp.

What happens

The route reflector's check passes, then the script stops with KeyError: 'remote_ip' from the inline Python in deploy/containerlab/scripts/verify-bmp.sh, and the task fails.

Expected

The script skips Loc-RIB instance peers and checks every fabric-router session.

Fix

Skip Peer Up/Down records that have no remote_ip, or whose is_loc_rib is true, before recording their action. With that one change every check in the task passes on a fresh lab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions