Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
Bugzilla Migration
-
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
======================
{
"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":
,
"originator-id":
,
"as-path": {},
"multi-exit-disc":
,
"local-pref":
,
"ipv4-next-hop":
,
"cluster-id":
}
},
{
"prefix": "1.1.1.2/32",
"attributes": {
"origin":
,
"originator-id":
,
"as-path": {},
"multi-exit-disc":
,
"local-pref":
,
"ipv4-next-hop":
,
"cluster-id":
}
}
]
}
}
]
}
{
"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.1/32" } ]
}
}
],
"server-provided": true
}
]
}
=======================================================================================================================
CLEANED
=======
{
"tables": [
{
"safi": "bgp-types:unicast-subsequent-address-family",
"afi": "bgp-types:ipv4-address-family",
"bgp-inet:ipv4-routes": {}
}
]
}
{
"topology": [
{
"topology-id": "example-ipv4-topology",
"topology-types": {},
"server-provided": true
}
]
}
-----------------------------------------------------------------------------------------------------------------------
RESULTS FOR STEPS: 3&4
======================
{
"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":
,
"originator-id":
,
"as-path": {},
"multi-exit-disc":
,
"local-pref":
,
"ipv4-next-hop":
,
"cluster-id":
}
},
{
"prefix": "1.1.1.2/32",
"attributes": {
"origin":
,
"originator-id":
,
"as-path": {},
"multi-exit-disc":
,
"local-pref":
,
"ipv4-next-hop":
,
"cluster-id":
}
}
]
}
}
]
}
{
"topology": [
{
"topology-id": "example-ipv4-topology",
"topology-types": {},
"server-provided": true
}
]
}