Skip to content

vtysh: debug resolver command fails without bmp module #20042

@kunkku

Description

@kunkku

Description

Enabling debugging for the resolver fails if bgpd runs without the bmp module.

Version

10.5.0

How to reproduce

Make sure bgpd is running without the bmp module loaded. Enter the following command: vtysh -c "debug resolver".

Expected behavior

No error would be displayed and resolver debugging would be enabled for nhrpd.

Actual behavior

Debugging is not enabled. Instead, an error is displayed: % [BGP] Unknown command: debug resolver.

Additional context

If the bmp module is loaded, the command succeeds and debugging is enabled both in bgpd and nhrpd. If bgpd is not running at all, the command works as expected, enabling debugging in nhrpd. If bgpd is running without the module, it is possible to enable debugging with vtysh -d nhrpd -c "debug resolver", but I think the command should work without having to specify the daemon.

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds further investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions