Closed skayres closed 5 years ago
You have found a bug in the auto-generated portion of the package which we will be fixing shortly. To workaround the issue pass in a list of the session/device indexes you want to retrieve learned info for:
response = bgp_ipv4_peers.GetIPv4LearnedInfo([1, 2, 3])
Hi! Ixnetwork version: v8.52.1904.2
Couldn't you add a sample how to get IPv4learnedInfo for BGP session?
I try something like this:
And I get 404 error from IxNetwork:
When I use the API browser I get the correct response. The difference in the requests is: API Browser: POST:/api/v1/sessions/1/ixnetwork/topology/deviceGroup/ipv4Loopback/bgpIpv4Peer/operations/getipv4learnedinfo
ixnetwork_restpy: POST:/api/v1/sessions/1/ixnetwork/topology/1/deviceGroup/1/ipv4Loopback/2/bgpIpv4Peer/1/operations/getipv4learnedinfo
Thank you.