-
Notifications
You must be signed in to change notification settings - Fork 40
Updated PR for get_bgp_neighbors to support IPv6 #153
Conversation
cc: @benmaddison |
@mirceaulinic or @dbarrosop or @ebeahan ...one of you should also review this (as I made quite a few modifications to it). I have reviewed the original work pretty extensively (so main requirement is to review my changes). |
The CI issue looks like a Travis-CI issue with Python3.5 (Python3.4 works...so I think we should be good there). |
@ktbyers on your question RE: merging the |
Yes, agreed that separate reflection of is_up and uptime per AFI would be better. This will change in napalm-yang so I don't think it makes sense to update here. @mirceaulinic @dbarrosop What are your thoughts on the issue of is_up / uptime across both AFI of IPv4 and IPv6. I still think a logical-or and minimum uptime is the more conservative approach. I.E. if you configured them both then if both of them are not up, reflect is_up as down (and use the minimum uptime). |
1 similar comment
|
… -1 when BGP session down
@dbarrosop @benmaddison Okay, I converted is_up back to a logical or and I changed uptime back to max. Realistically, the up_time and is_up should be essentially the same for both AFIs (except possibly for transition events...i.e. we query IPv4, and then the session goes down, then we query IPv6). I also changed 'is_up' to be based on uptime and not to be based on state/prefixes field (as NoNeg state would previously flag BGP session as down even though it was up). Here is an example:
I also converted the no-value for accepted/received/sent prefixes to be -1 (since zero can be a valid value when the session is up). Note, I am going to move this and track it as a separate issue. Basically, I think the current code is a significant improvement over what we previously had and I think we should move forward with it. Then we can separately address what do with respect to an address family not being negotiated.
|
I agree. Approved :) |
No description provided.