Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
Boron
-
None
-
None
-
Operating System: All
Platform: All
-
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":
}
--------------------------
Rest Input-2
-------------------------
#cat bgpconfig1
{
"neighbors": [
]
}
-------------------------
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#
=======================================================
----------------------------------------------------------