FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.21k stars 1.24k forks source link

CLI - "Unknown command: autocomplete 2" is printed for the routing processes, when the "?" is used #737

Closed jhiggins-NZ closed 7 years ago

jhiggins-NZ commented 7 years ago

Issue:

. .

Version:

configured with: '--prefix=/usr' '--enable-exampledir=/usr/share/doc/frr/examples/' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--enable-pimd' '--enable-ldpd' '--enable-eigrpd' '--enable-nhrpd' '--enable-ospfclient=yes' '--enable-ospfapi=yes' '--enable-watchfrr' '--enable-multipath=64' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' '--enable-rtadv' '--enable-tcp-zebra' '--enable-fpm' '--enable-systemd=yes' '--with-pkg-git-version' '--with-pkg-extra-version=-MyOwnFRRVersion'


.
.

**Example:**

R1(config)# router eigrp (1-65535) AS number to use % [ZEBRA] Unknown command: autocomplete 2 (1-65535) eigrp % [RIP] Unknown command: autocomplete 2 (1-65535) eigrp % [RIPNG] Unknown command: autocomplete 2 (1-65535) eigrp % [OSPF] Unknown command: autocomplete 2 (1-65535) eigrp % [OSPF6] Unknown command: autocomplete 2 (1-65535) eigrp % [LDP] Unknown command: autocomplete 2 (1-65535) eigrp % [BGP] Unknown command: autocomplete 2 (1-65535) eigrp % [ISIS] Unknown command: autocomplete 2 (1-65535) eigrp % [PIM] Unknown command: autocomplete 2 (1-65535) eigrp % [NHRP] Unknown command: autocomplete 2 (1-65535) e igrp % [WATCHFRR] Unknown command: autocomplete 2 (1-65535) eigrp

R1(config)# router bgp

(1-4294967295) AS number % [ZEBRA] Unknown command: autocomplete 2 (1-4294967295) bgp % [RIP] Unknown command: autocomplete 2 (1-4294967295) bgp % [RIPNG] Unknown command: autocomplete 2 (1-4294967295) bgp % [OSPF] Unknown command: autocomplete 2 (1-4294967295) bgp % [OSPF6] Unknown command: autocomplete 2 (1-4294967295) bgp % [LDP] Unknown command: autocomplete 2 (1-4294967295) bgp % [BGP] Unknown command: autocomplete 2 (1-4294967295) bgp % [ISIS] Unknown command: autocomplete 2 (1-4294967295) bgp % [PIM] Unknown command: autocomplete 2 (1-4294967295) bgp % [NHRP] Unknown command: autocomplete 2 (1-4294967295) bgp % [WATCHFRR] Unknown command: autocomplete 2 (1-4294967295) bgp R1(config)# router ospf (1-65535) Instance ID % [ZEBRA] Unknown command: autocomplete 2 (1-65535) ospf % [RIP] Unknown command: autocomplete 2 (1-65535) ospf % [RIPNG] Unknown command: autocomplete 2 (1-65535) ospf % [OSPF] Unknown command: autocomplete 2 (1-65535) ospf % [OSPF6] Unknown command: autocomplete 2 (1-65535) ospf % [LDP] Unknown command: autocomplete 2 (1-65535) ospf % [BGP] Unknown command: autocomplete 2 (1-65535) ospf % [ISIS] Unknown command: autocomplete 2 (1-65535) ospf % [PIM] Unknown command: autocomplete 2 (1-65535) ospf % [NHRP] Unknown command: autocomplete 2 (1-65535) ospf % [WATCHFRR] Unknown command: autocomplete 2 (1-65535) ospf R1(config)# router isis WORD ISO Routing area tag % [ZEBRA] Unknown command: autocomplete 1 WORD isis % [RIP] Unknown command: autocomplete 1 WORD isis % [RIPNG] Unknown command: autocomplete 1 WORD isis % [OSPF] Unknown command: autocomplete 1 WORD isis % [OSPF6] Unknown command: autocomplete 1 WORD isis % [LDP] Unknown command: autocomplete 1 WORD isis % [BGP] Unknown command: autocomplete 1 WORD isis % [ISIS] Unknown command: autocomplete 1 WORD isis % [PIM] Unknown command: autocomplete 1 WORD isis % [NHRP] Unknown command: autocomplete 1 WORD isis % [WATCHFRR] Unknown command: autocomplete 1 WORD isis ** Seems fine when there is no Instance ID, Area or AS input ** R1(config)# router rip R1(config)# router babel Make Babel instance command bgp BGP information eigrp Start EIGRP configuration isis ISO IS-IS ospf Start OSPF configuration ospf6 Open Shortest Path First (OSPF) for IPv6 rip RIP ripng RIPng ```
donaldsharp commented 7 years ago

@jhiggins-NZ This sure looks like you have different versions of FRR installed at the same time. Or when you started with a new version you didn't kill off the old one running fully.

Can you make sure that you've (a) killed all the daemons (b) and then installed and finally (c) restarted?

jhiggins-NZ commented 7 years ago

Thanks Donald. I might have forgotten to paste in the stop, daemon reload & start commands from my template.

I'll give it another go later.

donaldsharp commented 7 years ago

As per Lou's Suggestion, we should have a new enhancement to let vtysh notice it is compiled against the wrong version of the daemons currently running.

@jhiggins-NZ have you had a chance to retest?

jhiggins-NZ commented 7 years ago

@donaldsharp yes, running on NZ time. :)

Looks like it is my fault and I forgot to kill the old processes properly.

R1(config)# router bgp
  <cr>
  (1-4294967295)  AS number
R1(config)# router isis
  WORD  ISO Routing area tag
R1(config)# router ospf
  <cr>
  (1-65535)  Instance ID

CLI tests look fine.