Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-300

The BGP configuration is getting configured as "router bgp 0"

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Boron
    • None
    • General
    • 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":

      { "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#
      =======================================================

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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sumanth.ms@ericsson.com Sumanth M S
            dhevendran.k@tcs.com Dhevendran Kulandaivel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: