Page MenuHomeVyOS Platform

show protocols bfd command parse failure
Closed, ResolvedPublicBUG

Description

[email protected]:~$ show protocols bfd peer 64.40.23.35
% Unknown command: show bfd peer 64.40.23.35 local-address 64.40.23.36 vrf default interface eth1
[email protected]:~$ show protocols bfd peer
Possible completions:

<Enter>       Execute the current command
64.40.23.34   Show Bidirectional Forwarding Detection (BFD) peer status
64.40.23.35
64.40.23.37
counters      Show Bidirectional Forwarding Detection (BFD) peer counters

[email protected]:~$ show protocols bfd peer 64.40.23.35
% Unknown command: show bfd peer 64.40.23.35 local-address 64.40.23.36 vrf default interface eth1
[email protected]:~$

Details

Difficulty level
Unknown (require assessment)
Version
1.2.6-S1 (8f59dd4)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Related Objects

Event Timeline

@c-po @dmbaturin It can be safely cherry-picked to the "crux".
I tested this on 1.2.6-s1, it works.

[email protected]:~$ show protocols bfd peer 100.64.0.1 
BFD Peer:
        peer 100.64.0.1 local-address 100.64.0.2 vrf default
                ID: 1804480272
                Remote ID: 517132321
                Status: up
                Uptime: 27 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: configured
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo transmission interval: 50ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo transmission interval: 50ms

[email protected]:~$ 
[email protected]:~$ show protocols bfd peer 100.64.0.1 counters 
        peer 100.64.0.1 local-address 100.64.0.2 vrf default
                Control packet input: 158 packets
                Control packet output: 158 packets
                Echo packet input: 0 packets
                Echo packet output: 0 packets
                Session up events: 1
                Session down events: 0
                Zebra notifications: 1

[email protected]:~$
Viacheslav changed the task status from Open to Backport candidate.Oct 20 2020, 9:54 AM

PR for crux https://github.com/vyos/vyos-1x/pull/582

Before fix

[email protected]:~$ show protocols bfd peer 100.64.0.1 
% Unknown command: show bfd     peer 100.64.0.1 vrf default
[email protected]:~$ 
[email protected]:~$ show protocols bfd peer 100.64.0.1 counters 
% Unknown command: show bfd     peer 100.64.0.1 vrf default counters
[email protected]:~$

After fix

[email protected]:~$ show protocols bfd peer 100.64.0.1 
BFD Peer:
        peer 100.64.0.1 vrf default
                ID: 2916290872
                Remote ID: 650038704
                Status: up
                Uptime: 38 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: configured
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo transmission interval: 50ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo transmission interval: 50ms

[email protected]:~$ 
[email protected]:~$ show protocols bfd peer 100.64.0.1 counters 
        peer 100.64.0.1 vrf default
                Control packet input: 499 packets
                Control packet output: 500 packets
                Echo packet input: 0 packets
                Echo packet output: 0 packets
                Session up events: 3
                Session down events: 2
                Zebra notifications: 5

[email protected]:~$
Viacheslav claimed this task.