MERAprojects / ops-build

Other
0 stars 0 forks source link

BGP command `neighbor x.x.x.x soft-reconfiguration inbound` works incorrectly #5

Open xivamar opened 7 years ago

xivamar commented 7 years ago

Problem Description:

BGP command neighbor x.x.x.x soft-reconfiguration inbound works incorrectly.

OpenSwitch version:

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

Test Topology:

topologyipv4

Steps to reproduce the problem (see attached file):

  1. Configure DUTs as in attached file.
  2. Check adjacency and bgp routing table on DUT1. All routes should be in the tables.

      OpenSwitch-1# show ip bgp summary 
      BGP router identifier 102.0.0.2, local AS number 64500
      RIB entries 9
      Peers 2
    
      Neighbor             AS MsgRcvd MsgSent Up/Down  State
      101.0.0.1         64501      15      15 00:08:27 Established
      102.0.0.1         64502      15      18 00:08:23 Established
      OpenSwitch-1# 
      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# 
  3. Configure filter via prefix-list.

     OpenSwitch-1# configure terminal
     OpenSwitch-1(config)# ip prefix-list DUT4_in seq 5 deny 120.0.0.0/24
     OpenSwitch-1(config)# ip prefix-list DUT4_in seq 10 permit 0.0.0.0/0 le 32
     OpenSwitch-1(config)# router bgp 64500
     OpenSwitch-1(config-router)# neighbor 102.0.0.1 prefix-list DUT4_in in
     OpenSwitch-1(config-router)# end
     OpenSwitch-1# 
     OpenSwitch-1# clear bgp * soft in
  4. Check adjacency on DUT1. - NOK: session should be in Established state

     OpenSwitch-1#  show ip bgp summary 
     BGP router identifier 102.0.0.2, local AS number 64500
     RIB entries 5
     Peers 2
    
     Neighbor             AS MsgRcvd MsgSent Up/Down  State
     101.0.0.1         64501      27      32 00:00:54        Idle
     102.0.0.1         64502      27      30 00:00:54        Idle
     OpenSwitch-1# 

gns_eBGP_IPv4_soft-reconfiguration.txt

ekgrish commented 7 years ago

related to: https://github.com/MERAprojects/ops-quagga/issues/8 https://github.com/MERAprojects/ops-quagga/issues/9

ekgrish commented 7 years ago

Pull request: https://github.com/MERAprojects/ops-quagga/pull/42