Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for event history on n9k-f #495

Merged
merged 1 commit into from
Nov 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/cisco_node_utils/bgp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ def event_history_events=(val)

def default_event_history_events
if Utils.image_version?(/7.0.3.I2|I3|I4/) ||
Utils.chassis_pid?(/N(5|6|7|8)/)
Utils.image_version?(/7.0.3.F1/) ||
Utils.chassis_pid?(/N(5|6|7)/)
config_get_default('bgp', 'event_history_events')
else
config_get('bgp', 'event_history_events_bytes', @get_args)
Expand Down Expand Up @@ -574,7 +575,8 @@ def event_history_periodic=(val)

def default_event_history_periodic
if Utils.image_version?(/7.0.3.I2|I3|I4/) ||
Utils.chassis_pid?(/N(5|6|7|8)/)
Utils.image_version?(/7.0.3.F1/) ||
Utils.chassis_pid?(/N(5|6|7)/)
config_get_default('bgp', 'event_history_periodic')
else
config_get('bgp', 'event_history_periodic_bytes', @get_args)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_router_bgp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def setup_vrf

def newer_image_version?
return false if Utils.image_version?(/7.0.3.I2|I3|I4/) ||
Utils.chassis_pid?(/N(5|6|7|8)/)
Utils.image_version?(/7.0.3.F1/) ||
Utils.chassis_pid?(/N(5|6|7)/)
true
end

Expand Down