diff options
| author | Joseph Henry <[email protected]> | 2020-08-06 18:10:40 -0700 |
|---|---|---|
| committer | Joseph Henry <[email protected]> | 2020-08-06 18:10:40 -0700 |
| commit | edd960566adc164e0854f0d2379432d178a910af (patch) | |
| tree | 9438e14b855c0cf29949673678f5d5c38a6dfe7b /one.cpp | |
| parent | 9f4985b11a5a4f93c9435094adfce378d573c7a6 (diff) | |
Improve bond tracing, fix bond initialization bugs, remove vestigial debug code
Diffstat (limited to 'one.cpp')
| -rw-r--r-- | one.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -492,6 +492,7 @@ static int cli(int argc,char **argv) if (json) { printf("%s" ZT_EOL_S,OSUtils::jsonDump(j).c_str()); } else { + bool bFoundBond = false; printf(" <peer> <bondtype> <status> <links>" ZT_EOL_S); if (j.is_array()) { for(unsigned long k=0;k<j.size();++k) { @@ -504,6 +505,7 @@ static int cli(int argc,char **argv) int8_t numTotalLinks = p["numTotalLinks"]; if (isBonded) { + bFoundBond = true; std::string healthStr; if (isHealthy) { healthStr = "HEALTHY"; @@ -524,6 +526,9 @@ static int cli(int argc,char **argv) } } } + if (!bFoundBond) { + printf(" NONE\t\t\t\tNONE\t NONE NONE" ZT_EOL_S); + } } return 0; } else { |
