MERAprojects / ops-quagga

GNU General Public License v2.0
0 stars 0 forks source link

The command `show ipv6 bgp` works incorrect #12

Closed xivamar closed 7 years ago

xivamar commented 8 years ago

Problem Description:

The command show ipv6 bgp output contains incorrect nexthops.

OpenSwitch version:

OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-master-20160823125534-dev) OpenSwitch 1.0.0-rc0 (Build: appliance-ops-1.0.0-rc0-dill-20160901072338-dev)

Test Topology:

topologyipv6

Steps to reproduce the problem:

  1. Configure bgp router and add neighbors to it on each DUTs. Neighbors should be in established state. 2.Check bgp routing table via show ipv6 bgp on DUTs. - NOK: Output contains incorrect entries, some nexthops are invalid.

     switch# show ipv6 bgp 
    Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
                  i internal, S Stale, R Removed
    Origin codes: i - IGP, e - EGP, ? - incomplete
    
    Local router-id 1.1.1.1
       Network          Next Hop            Metric LocPrf Weight Path
    *> 2002::6400:0/119 ::                       0      0  32768  i
    *> 2002::6500:0/116 2002::6500:1             0      0  32768 64501 i
    *> 2002::6500:0/116 ::                       0      0  32768 64501 i
    *  2002::6600:0/117 2002::6500:1             0      0  32768 64501 64502 i
    *> 2002::6600:0/117 ::                       0      0  32768 64502 i
    *> 2002::6700:0/118 2002::6500:1             0      0  32768 64501 64503 i
    *> 2002::6700:0/118 ::                       0      0  32768 64501 64503 i
    *> 2002::7800:0/120 2002::6500:1             0      0  32768 64501 64503 i
    *> 2002::7800:0/120 ::                       0      0  32768 64501 64503 i
    Total number of entries 9
    switch#
xivamar commented 8 years ago

For networks 2002::7800:0/120, 2002::6700:0/118, 2002::6600:0/117, 2002::6500:0/116 instead :: should be specific ip address.

Only one best route to network should be marked >. Presently all routes are marked as best.

The path should be corresponding to nexthop. Now they are the same.

xivamar commented 7 years ago

The main problem doesn't reproduced on build:

     switch# show version 
     OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-master-20161012101714-dev)
     switch#