[BGPCEP-327] Routes from BGP application peer not populated to example-ipv4-topology in case of zero routes initial POST request Created: 07/Dec/15  Updated: 03/Mar/19  Resolved: 30/Mar/16

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Radovan Sajben Assignee: Milos Fabian
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: 4731
Priority: 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
}
]
}



 Comments   
Comment by Claudio David Gasparini [ 09/Dec/15 ]

Draft: https://git.opendaylight.org/gerrit/#/c/31065/

Comment by Milos Fabian [ 15/Dec/15 ]

-initial POST with/without routes is not needed at all - wiki pages updated (restconf take care for a creating of missing parents)
-empty container is omitted by restconf (that's why missing in a next step)
-Java APIs approach results in expected behavior

I assume, no action needed here for BGP project.

Comment by Milos Fabian [ 17/Dec/15 ]

Possibly, the problem might be addressed to some other project - keeping opened, as more investigation is needed to find a suspect.

Comment by Milos Fabian [ 16/Mar/16 ]

https://git.opendaylight.org/gerrit/#/c/36312/

Comment by Milos Fabian [ 30/Mar/16 ]

boron: https://git.opendaylight.org/gerrit/#/c/36720/

Generated at Wed Feb 07 19:12:43 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.