[NETVIRT-779] Fib Manager / fib-show enhancement Created: 11/Jul/17  Updated: 19/Oct/17  Resolved: 13/Jul/17

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Nitrogen
Fix Version/s: None

Type: Bug
Reporter: Philippe Guibert Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 8841

 Description   

fib-show should have the ability to dump prefixes based on address-family used, or/and base don prefix/subnet value given in input

the help command would look like following

>fib-show --help
DESCRIPTION
vpnservice:fib-show

Displays fibs entries

SYNTAX
vpnservice:fib-show [options] [dummy]

ARGUMENTS
dummy
Argument not needed

OPTIONS
--af
filter on address family : ipv4, ipv6, l2vpn
--help
Display this help message
--sub
Filter on give IPv4/IPv6 prefix or subnet



 Comments   
Comment by de Prandieres Noel [ 13/Jul/17 ]

fib-show options is enhanced to get dump sorted per address-families or/and prefix/subnet

the help command would look like following

fib-show --help
DESCRIPTION
vpnservice:fib-show

Displays fib entries. To get more help use cli fib-show fullHelp

SYNTAX
vpnservice:fib-show [options] [addFam|fullHelp]

ARGUMENTS
addFam|fullHelp
type of address families to show, or full help cli

OPTIONS
--addr-family, -af
show address family ipv4 and/or ipv6 and/or l2vpn
--help
Display this help message
--subnet, -sub
show only one IP or subnet sorted by mask ex "x.x.x.x/32" or
"2001::1/128"

A few examples of use :

to show ipv4 address family only:
>fib-show -af ipv4
RD Prefix NextHop Label Origin
-------------------------------------------------------------------
8:1 4.1.2.0/24 3.4.4.4 552655 s
8:1 4.1.3.0/24 3.4.4.4 552655 s
8:1 4.1.3.1/32 3.4.4.4 552655 s
8:1 4.1.1.0/24 3.4.4.4 552655 s
8:1 4.1.2.1/32 3.4.4.4 552655 s

to show ipv6 address family only:
>fib-show -af ipv6
RD Prefix NextHop Label Origin
-------------------------------------------------------------------
8:1 2001::0/64 3.4.4.4 552656 s
8:1 2001::2/128 3.4.4.4 552656 s
8:1 2002::0/64 3.4.4.4 552656 s
8:1 2002::1/128 3.4.4.4 552656 s
8:1 2002::2/128 3.4.4.4 552656 s
8:1 2001::1/128 3.4.4.4 552656 s

to show only one entry:
>fib-show -sub 4.1.3.0/24
RD Prefix NextHop Label Origin
-------------------------------------------------------------------
8:1 4.1.3.0/24 3.4.4.4 552655 s

Generated at Wed Feb 07 20:22:27 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.