[NETVIRT-300] The BGP configuration is getting configured as "router bgp 0" Created: 28/Nov/16  Updated: 30/Oct/17  Resolved: 07/Feb/17

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

Type: Bug
Reporter: Dhevendran Kulandaivel Assignee: Sumanth M S
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: 7247

 Description   

When we configure bgp from ODL with as-id as 100, the bgpd output is showing “as-id as 0” and neighbor-ship is also not getting established.

==============6Wind Quagga running config ======
bgpd# show
running-config

Current configuration:
!
hostname bgpd
password sdncbgpc
log stdout
service advanced-vty
!
router bgp 0
bgp router-id 192.168.122.146
no bgp log-neighbor-changes
bgp graceful-restart restart-time 900 bgp graceful-restart bgp
graceful-restart preserve-fw-state bgp bestpath as-path
multipath-relax exit !
line vty
exec-timeout 0 0
!
end
bgpd#
=======================================================

How to reproduce
========================================================

1. Install ODL boron
2. Install the ODL feature "feature:install odl-netvirt-openstack"
3. Install router software (e.g. 6wind quagga) and start the demon (e.g. qthriftd )
3. Do neighbor configuration using the REST POST call

===========================================================

Rest Input-1
--------------------------
#cat bgpconfig
{
"as-id":

{ "local-as":100, "router-id":'192.168.122.86' }

}
--------------------------

Rest Input-2
-------------------------
#cat bgpconfig1
{
"neighbors": [

{ "address": 192.168.122.146, "remote-as": 100 }

]
}
-------------------------

curl -u admin:admin -X POST -H "Content-Type:application/json" -d @bgpconfig "http://localhost:8181/restconf/config/ebgp:bgp/" -v

curl -u admin:admin -X POST -H "Content-Type:application/json" -d @bgpconfig1 "http://localhost.86:8181/restconf/config/ebgp:bgp/" -v

===========================================================
4. Check the configuration on router

-----------------------------------------------

==============6Wind Quagga running config ======
bgpd# show
running-config

Current configuration:
!
hostname bgpd
password sdncbgpc
log stdout
service advanced-vty
!
router bgp 0
bgp router-id 192.168.122.146
no bgp log-neighbor-changes
bgp graceful-restart restart-time 900 bgp graceful-restart bgp
graceful-restart preserve-fw-state bgp bestpath as-path
multipath-relax exit !
line vty
exec-timeout 0 0
!
end
bgpd#
=======================================================

----------------------------------------------------------



 Comments   
Comment by Dhevendran Kulandaivel [ 01/Dec/16 ]

Hi Shivakumar

I assigned on your name. If needed, can you assign to the right owner?

Thanks in Advance

With Warm Regards,
Dhevendran K

Comment by Dhevendran Kulandaivel [ 06/Dec/16 ]

Hi

This is moved it as blocker since we are not able to add any CSIT automated test cases

Thanks
Dhevendran K

Comment by Vishal Thapar [ 06/Dec/16 ]

(In reply to Dhevendran Kulandaivel from comment #2)
> Hi
>
> This is moved it as blocker since we are not able to add any CSIT automated
> test cases
>
> Thanks
> Dhevendran K

That is not a reason to mark it as blocker. Blocker means bug is serious enough to block release, not that someone is blocked till this is fixed. Also, why is this marked as legacy? Legacy refers to old netvirt [odl-ovsdb-openstack] which had no BGP integration.

Comment by Sumanth M S [ 14/Dec/16 ]

BGP AS number field size needs to be changed from current 32 bit to 64 bit. This change has now been incorporated.

Comment by Nikolas Hermanns [ 06/Feb/17 ]

Could you point me to the change?

Comment by Sumanth M S [ 07/Feb/17 ]

Gerrit code review:
https://git.opendaylight.org/gerrit/#/c/48845/

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