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

Routes from BGP application peer not populated to example-ipv4-topology in case of zero routes initial POST request

    XMLWordPrintable

Details

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

    • 4731
    • Low

    Description

      In case of initial POST request without any route included, no consequent example-app-rib change is populated to example-ipv4-topology

      distribution-karaf-0.3.3-SNAPSHOT

      STEP 1/ python bgp_app_peer.py --command post --count 1 --prefix 1.1.1.1 --prefixlen 32 --de (initial POST request with one route introduced)
      STEP 2/ python bgp_app_peer.py --command add --count 1 --prefix 1.1.1.2 --prefixlen 32 --info (consequent POST single route request)

      result: SUCESS

      STEP 3/ python bgp_app_peer.py --command post --count 0 --prefix 1.1.1.1 --prefixlen 32 --de (initial POST request without any route introduced)
      STEP 4/ python bgp_app_peer.py --command add --count 2 --prefix 1.1.1.1 --prefixlen 32 --info (consequent two POST single route request)

      result: FAILURE

      RESULTS FOR STEPS: 1&2
      ======================

      http://localhost:8181/restconf/config/bgp-rib:application-rib/example-app-rib/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/

      {
      "tables": [
      {
      "safi": "bgp-types:unicast-subsequent-address-family",
      "afi": "bgp-types:ipv4-address-family",
      "bgp-inet:ipv4-routes": {
      "ipv4-route": [
      {
      "prefix": "1.1.1.1/32",
      "attributes": {
      "origin":

      { "value": "igp" }

      ,
      "originator-id":

      { "originator": "41.41.41.41" }

      ,
      "as-path": {},
      "multi-exit-disc":

      { "med": 0 }

      ,
      "local-pref":

      { "pref": 100 }

      ,
      "ipv4-next-hop":

      { "global": "199.20.160.41" }

      ,
      "cluster-id":

      { "cluster": [ "40.40.40.40" ] }

      }
      },
      {
      "prefix": "1.1.1.2/32",
      "attributes": {
      "origin":

      { "value": "igp" }

      ,
      "originator-id":

      { "originator": "41.41.41.41" }

      ,
      "as-path": {},
      "multi-exit-disc":

      { "med": 0 }

      ,
      "local-pref":

      { "pref": 100 }

      ,
      "ipv4-next-hop":

      { "global": "199.20.160.41" }

      ,
      "cluster-id":

      { "cluster": [ "40.40.40.40" ] }

      }
      }
      ]
      }
      }
      ]
      }

      http://localhost:8181/restconf/operational/network-topology:network-topology/topology/example-ipv4-topology

      {
      "topology": [
      {
      "topology-id": "example-ipv4-topology",
      "topology-types": {},
      "node": [
      {
      "node-id": "199.20.160.41",
      "l3-unicast-igp-topology:igp-node-attributes": {
      "prefix": [

      { "prefix": "1.1.1.2/32" }

      ,

      { "prefix": "1.1.1.1/32" }

      ]
      }
      }
      ],
      "server-provided": true
      }
      ]
      }

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

      CLEANED
      =======

      http://localhost:8181/restconf/config/bgp-rib:application-rib/example-app-rib/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/

      {
      "tables": [
      {
      "safi": "bgp-types:unicast-subsequent-address-family",
      "afi": "bgp-types:ipv4-address-family",
      "bgp-inet:ipv4-routes": {}
      }
      ]
      }

      http://localhost:8181/restconf/operational/network-topology:network-topology/topology/example-ipv4-topology

      {
      "topology": [
      {
      "topology-id": "example-ipv4-topology",
      "topology-types": {},
      "server-provided": true
      }
      ]
      }

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

      RESULTS FOR STEPS: 3&4
      ======================

      http://localhost:8181/restconf/config/bgp-rib:application-rib/example-app-rib/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/

      {
      "tables": [
      {
      "safi": "bgp-types:unicast-subsequent-address-family",
      "afi": "bgp-types:ipv4-address-family",
      "bgp-inet:ipv4-routes": {
      "ipv4-route": [
      {
      "prefix": "1.1.1.1/32",
      "attributes": {
      "origin":

      { "value": "igp" }

      ,
      "originator-id":

      { "originator": "41.41.41.41" }

      ,
      "as-path": {},
      "multi-exit-disc":

      { "med": 0 }

      ,
      "local-pref":

      { "pref": 100 }

      ,
      "ipv4-next-hop":

      { "global": "199.20.160.41" }

      ,
      "cluster-id":

      { "cluster": [ "40.40.40.40" ] }

      }
      },
      {
      "prefix": "1.1.1.2/32",
      "attributes": {
      "origin":

      { "value": "igp" }

      ,
      "originator-id":

      { "originator": "41.41.41.41" }

      ,
      "as-path": {},
      "multi-exit-disc":

      { "med": 0 }

      ,
      "local-pref":

      { "pref": 100 }

      ,
      "ipv4-next-hop":

      { "global": "199.20.160.41" }

      ,
      "cluster-id":

      { "cluster": [ "40.40.40.40" ] }

      }
      }
      ]
      }
      }
      ]
      }

      http://localhost:8181/restconf/operational/network-topology:network-topology/topology/example-ipv4-topology

      {
      "topology": [
      {
      "topology-id": "example-ipv4-topology",
      "topology-types": {},
      "server-provided": true
      }
      ]
      }

      Attachments

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

        Activity

          People

            milos.fabian@pantheon.tech Milos Fabian
            rsajben@cisco.com Radovan Sajben
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: