Skip to content

Commit

Permalink
[ycabled][active-active] no initialize Async Client, when no active-a…
Browse files Browse the repository at this point in the history
…ctive cable type; fix names for all ycabled threads (#373)

This PR intends to not start sonic-ycabled's Asynchronous client, when there is no active-active cable type.
The Problem that we encounter is ycabled expects all threads to be working/running state all the time.
Since there are no active-active cable_type Async client thread exits gracefully,
but by design this needs to be working if added to monitor loop thread. So this PR fixes this problem by runnig the Async Client only if configuration is active-active for atleast a cable.

This PR also has all the infrastructure changes UT for all Classes having infinite loops in ycabled, thus helping in picking up cases if changes break the code.

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
  • Loading branch information
vdahiya12 authored and yxieca committed Jul 7, 2023
1 parent e325d5a commit 112656c
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 34 deletions.
Loading

0 comments on commit 112656c

Please sign in to comment.