UI work, add name to listnetworks output in control bus interface.
This commit is contained in:
@@ -200,7 +200,7 @@ std::vector<std::string> NodeConfig::execute(const char *command)
|
||||
_r->topology->eachPeer(_DumpPeerStatistics(r));
|
||||
} else if (cmd[0] == "listnetworks") {
|
||||
Mutex::Lock _l(_networks_m);
|
||||
_P("200 listnetworks <nwid> <status> <type> <dev> <ips>");
|
||||
_P("200 listnetworks <nwid> <name> <status> <type> <dev> <ips>");
|
||||
for(std::map< uint64_t,SharedPtr<Network> >::const_iterator nw(_networks.begin());nw!=_networks.end();++nw) {
|
||||
std::string tmp;
|
||||
std::set<InetAddress> ips(nw->second->tap().ips());
|
||||
@@ -211,8 +211,9 @@ std::vector<std::string> NodeConfig::execute(const char *command)
|
||||
}
|
||||
|
||||
SharedPtr<NetworkConfig> nconf(nw->second->config2());
|
||||
_P("200 listnetworks %.16llx %s %s %s %s",
|
||||
_P("200 listnetworks %.16llx %s %s %s %s %s",
|
||||
(unsigned long long)nw->first,
|
||||
((nconf) ? nconf->name().c_str() : "?"),
|
||||
Network::statusString(nw->second->status()),
|
||||
((nconf) ? (nconf->isOpen() ? "public" : "private") : "?"),
|
||||
nw->second->tap().deviceName().c_str(),
|
||||
|
||||
Reference in New Issue
Block a user