Open mirceaulinic opened 8 years ago
I guess that should will have to specify both the VRF and the IP you want to filter on. Other than that tiny detail, sounds good to me.
Updated the title. @dbarrosop can you please spread this issue on junos, iosxr and eos drivers? I still have some problems with the napalm-tools although I set the env token...
And actually I think we should add the vrf arg also for get_bgp_neighbors_detail
still have some problems with the napalm-tools although I set the env token
Let's take a look tomorrow and try to fix it tomorrow. It should work : (
And actually I think we should add the vrf arg also for get_bgp_neighbors_detail
That would break the API and I'd rather not. Hopefully we will have a method like that based on YANG models soon.
That would break the API and I'd rather not.
What would be the difference - I think it would make more sense to have both consistent:
get_bgp_neighbors(vrf=None, neighbor_address=None)
and
get_bgp_neighbors_detail(vrf=None, neighbor_address=None)
doesn't it?
Well, what do we do today. Return from global? Return all of the neighbors regarding their VRF? I'd actually replace vrf=None
with vrf="global"
.
Well, what do we do today. Return from global?
No, from all VRFs.
I'd actually replace vrf=None with vrf="global".
If we do this, by default will retrieve data only from the default VRF, which means will change the current behaviour, hence will break the API.
Mmmm, ok, let's do it then.
Without changing the current behaviour, the argument would increase the performances of the
get_bgp_neighbors
method. If not passed or empty/null, will return everything. Of course we can retrieve everything and filter, but this is not optimal when there's a very high number of neighbors and you need the operational data for a specific peer only:PoC:
Without
neighbor_address
:With
neighbor_address
: