-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Add integration tests for nxos_facts, nxos_bgp, nxos_bgp_af, nxos_bgp_neighbor, and nxos_evpn_global #26924
Conversation
The test
|
@rahushen this PR contains the following merge commits: Please rebase your branch to remove these commits. |
Status of the tests provided:
|
|
@Qalthos .... I've added checks in the tests for titanium now. Can you verify ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me. There's some issues left to be resolved, but with those out of the way, we can finally merge this.
graceful_restart_timers_restart: 130 | ||
graceful_restart_timers_stalepath_time: 310 | ||
isolate: false | ||
log_neighbor_changes: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log_neighbor_changes
needs to be toggled on titanium
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahaha, it was totally my fault x_x
Sorry.
graceful_restart_timers_restart: 130 | ||
graceful_restart_timers_stalepath_time: 310 | ||
isolate: false | ||
log_neighbor_changes: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the various parameters
log_neighbor_changes: true | ||
maxas_limit: 50 | ||
neighbor_down_fib_accelerate: true | ||
reconnect_interval: 55 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And reconnect_interval
event_history_detail: size_large | ||
event_history_events: size_medium | ||
event_history_periodic: size_small | ||
suppress_fib_pending: "{{suppress_fib_pending|default(omit)}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I don't think suppress_fib_pending
does
- debug: msg="START TRANSPORT:CLI nxos_bgp sanity test" | ||
|
||
- set_fact: suppress_fib_pending="true" | ||
when: (titanium is defined) and ((titanium | search('true')) != 'true') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test did not work properly as written. when: (titanium is defined) and not ((titanium | search('true')))
did.
- debug: msg="START TRANSPORT:NXAPI nxos_bgp sanity test" | ||
|
||
- set_fact: suppress_fib_pending="true" | ||
when: (titanium is defined) and ((titanium | search('true')) != 'true') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again with the test
- set_fact: intname="{{ nxos_int1 }}" | ||
|
||
- set_fact: log_neighbor_changes="enable" | ||
when: (titanium is defined) and ((titanium | search('true')) != 'true') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same issue with these tests
- set_fact: intname="{{ nxos_int1 }}" | ||
|
||
- set_fact: log_neighbor_changes="enable" | ||
when: (titanium is defined) and ((titanium | search('true')) != 'true') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And these tests
@Qalthos ... review comments have been take care of. |
--- | ||
- debug: msg="START TRANSPORT:CLI nxos_bgp sanity test" | ||
|
||
- set_fact: log_neighbor_changes="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments I made here are gone, and I'm going to assume that this was my fault, because I've been looking at this too long and can't remember what is what anymore.
log_neighbor_changes
is not an issue with nxos_bgp (but it is with nxos_bgp_neighbor). Instead, what needs to be turned off here in nxos_bgp (and its twin in nxapi) is neighbor_down_fib_accelerate
. Sorry for the confusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok fixed. If there are more issues with titanium specifically can we get a whole rundown on the issue rather than piece meal info ? This is incredibly frustating. Ideally, a test against an irrelevant platform shouldn't gate commits.
Everything passes here (after #27329 is applied). When Shippable is green, this is good to go |
SUMMARY
This PR adds integration tests for the
nxos_bgp
,nxos_bgp_af
,nxos_bgp_neighbor
andnxos_evpn_global
modules.ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION