]> git.proxmox.com Git - mirror_frr.git/commit
lib: cli: fix IPv6 address partial matching
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 11 May 2017 09:26:40 +0000 (11:26 +0200)
committerQuentin Young <qlyoung@users.noreply.github.com>
Mon, 15 May 2017 14:27:43 +0000 (10:27 -0400)
commit9a7fc1bd7a4961793bfb4340a4c4819e217fcb70
tree628c33445a53f73c4a7882f0fb553dc6e090197c
parent4e3e06d6384c1e0a7106d740945344d095f02b9c
lib: cli: fix IPv6 address partial matching

A partially-entered IPv6 address would never return a "partly_match",
meaning some possible completions weren't listed by the matcher.

This specifically breaks autocompleting BGP IPv6 neighbor addresses.
Before:
aegaeon# show ip bg ne 2001:<?>
  WORD      Neighbor on BGP configured interface

After:
aegaeon# show ip bg ne 2001:<?>
  WORD      Neighbor on BGP configured interface
  X:X::X:X  Neighbor to display information about
      2001:db8::2

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/command_match.c
tests/lib/cli/test_cli.refout.in