summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2020-08-06 18:10:40 -0700
committerJoseph Henry <[email protected]>2020-08-06 18:10:40 -0700
commitedd960566adc164e0854f0d2379432d178a910af (patch)
tree9438e14b855c0cf29949673678f5d5c38a6dfe7b /one.cpp
parent9f4985b11a5a4f93c9435094adfce378d573c7a6 (diff)
Improve bond tracing, fix bond initialization bugs, remove vestigial debug code
Diffstat (limited to 'one.cpp')
-rw-r--r--one.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/one.cpp b/one.cpp
index 27f6a06a..8614f634 100644
--- a/one.cpp
+++ b/one.cpp
@@ -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 {