Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-482

POSTing an openconfig neghbor fails

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 6069

    Description

      I was following the user guide, https://wiki.opendaylight.org/view/BGP_LS_PCEP:Beryllium_User_Guide#BGP_Peer_3, to add a peer neighbor but it failed with:

      java.lang.IllegalArgumentException: Node (http://openconfig.net/yang/bgp?revision=2015-10-09)bgp is missing mandatory descendant /(http://openconfig.net/yang/bgp?revision=2015-10-09)global/config/as

      The global container is a sibling of neighbors but it has a mandatory child descendant. The only way I could get it to work as is was to PUT the entire bgp tree in order to include global and the mandatory leaf:

      <bgp xmlns="http://openconfig.net/yang/bgp">
      <global>
      <config>
      <as>64496</as>
      </config>
      </global>
      ...
      <neighbors>
      <neighbor>
      <neighbor-address>192.0.2.1</neighbor-address>
      ...
      </neighbor>
      </neighbors>
      </bgp>

      This is not very usable. After adding "presence" to the global container, it works as expected as per the guide.

      Attachments

        Issue Links

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

          Activity

            People

              cdgasparini Claudio David Gasparini
              tpantelis Tom Pantelis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: