MERAprojects / ops-quagga

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

BGP: part of routes are disappeared after restart bgp neighbor #35

Open xivamar opened 8 years ago

xivamar commented 8 years ago

Problem Description:

Part of BGP routes aren't added in routing table after restart bgp neighbor.

OpenSwitch version:

OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-master-20161012101714-dev)

Test Topology:

topologyipv4

Steps to reproduce the problem (see attached file):

  1. Configure DUTs as in attached file.
  2. Check routing table and bgp routing table via show ip route, show ip bgp on DUT1. All routes should be in the tables.

    OpenSwitch-1# show ip 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 102.0.0.2
      Network          Next Hop            Metric LocPrf Weight Path
    *> 100.0.0.0/23     0.0.0.0                  0      0  32768  i
    *  101.0.0.0/20     101.0.0.1                0      0  32768 64501 i
    *> 101.0.0.0/20     102.0.0.1                0      0  32768 64501 i
    *  102.0.0.0/21     101.0.0.1                0      0  32768 64501 64502 i
    *> 102.0.0.0/21     102.0.0.1                0      0  32768 64502 i
    *> 103.0.0.0/22     101.0.0.1                0      0  32768 64501 64503 i
    *> 103.0.0.0/22     102.0.0.1                0      0  32768 64501 64503 i
    *> 120.0.0.0/24     101.0.0.1                0      0  32768 64501 64503 i
    *> 120.0.0.0/24     102.0.0.1                0      0  32768 64501 64503 i
    Total number of entries 9
    
    OpenSwitch-1# show ip route 
    Displaying ipv4 routes selected for forwarding
    '[x/y]' denotes [distance/metric]
    100.0.0.1/32,  1 unicast next-hops 
       via  loopback1,  [0/0],  connected
    101.0.0.0/20,  1 unicast next-hops 
       via  101.0.0.1,  [20/0],  bgp
    101.0.0.0/30,  1 unicast next-hops 
       via  eth3,  [0/0],  connected
    102.0.0.0/21,  1 unicast next-hops 
       via  102.0.0.1,  [20/0],  bgp
    102.0.0.0/30,  1 unicast next-hops 
       via  eth1,  [0/0],  connected
    103.0.0.0/22,  1 unicast next-hops 
       via  101.0.0.1,  [20/0],  bgp
    120.0.0.0/24,  1 unicast next-hops 
       via  101.0.0.1,  [20/0],  bgp
    OpenSwitch-1# 
  3. Restart bgp neighbor 102.0.0.1 on DUT1.

            OpenSwitch-1# conf ter
            OpenSwitch-1(config)# router bgp 64500
            OpenSwitch-1(config-router)# neighbor 102.0.0.1 shutdown 
            OpenSwitch-1(config-router)# no neighbor 102.0.0.1 shutdown 
            OpenSwitch-1(config-router)# end
            OpenSwitch-1# 
  4. Check bgp routing table on DUT1. - NOK: Part of routes are disappeared.

    OpenSwitch-1# show ip 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 102.0.0.2
      Network          Next Hop            Metric LocPrf Weight Path
    *> 100.0.0.0/23     0.0.0.0                  0      0  32768  i
    *  101.0.0.0/20     101.0.0.1                0      0  32768 64501 i
    *  102.0.0.0/21     101.0.0.1                0      0  32768 64501 64502 i
    *> 102.0.0.0/21     102.0.0.1                0      0  32768 64502 i
    *> 103.0.0.0/22     101.0.0.1                0      0  32768 64501 64503 i
    *> 120.0.0.0/24     101.0.0.1                0      0  32768 64501 64503 i
    Total number of entries 6
    OpenSwitch-1# 

If in step 3 use clear bgp * in and clear bgp * out commands result will be as in step 4.

config.txt