Skip to content

sonic-net/sonic-linkmgrd

This branch is 1 commit ahead of, 2 commits behind master.

Folders and files

NameName
Last commit message
Last commit date
Dec 20, 2023
Apr 11, 2022
May 31, 2022
Dec 10, 2024
Dec 10, 2024
Sep 23, 2021
Mar 21, 2022
Sep 23, 2021
Sep 23, 2021
Sep 23, 2021
Apr 12, 2023
Mar 4, 2022
Sep 23, 2021
Sep 23, 2021
Jul 17, 2023
Sep 16, 2022
Mar 26, 2022
Sep 23, 2021

Repository files navigation

Total alerts

Project

This repo tracks the source code of linkmgrd for dual-ToR topology.

Coding style guide

Please follow the simple rules laid out below (will update as needed):

Spacing

  • Please configure your editor to enable expand white spaces. Do not use tab for spacing in source code.

  • Please configure your editor to set tab stop at 4 spaces. And use 4 white spaces for each indentation level.

  • Please leave one white space after following keywords:

    if (...)

    while (...)

    for (...)

Curly braces

  • Function definition: start a new line
void function(...)
{
    // code block
}
  • if/for/while condition when condition is one liner: same line
if (...) {
    // code block
}
  • if/for/while condition expands multiple lines: start a new line with ending ')' and '{'
if (...
    ...
) {
    // code block
}

Indentations

  • Please use 4 white spaces for each indentation level.

  • Multiple line condition indentation for (if/while/for) and/or function calls: indent one level and the ')' indent at the same level of the keyword or function name

if (condition line 1 ..
    condition line 2 (indent to '(' above)
    condition line 3
) {
    // code block
}

foo(
    parameter1,
    parameter2,
    parameter3
);

About

Repo For SONiC Supporting Dual-ToRs

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published