From 4c3fb8cf1085e76c4d7ff9d442b4f74ba306a4bc Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 20 Jun 2014 16:04:53 -0700 Subject: Don't list node as an active bridge if it's not authorized. (Wouldn't work anyway.) --- netconf-service/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netconf-service/index.js b/netconf-service/index.js index a55b844d..da386db7 100644 --- a/netconf-service/index.js +++ b/netconf-service/index.js @@ -473,7 +473,11 @@ function doNetconfRequest(message) if (keys) { async.eachSeries(keys,function(key,nextKey) { DB.hgetall(key,function(err,abr) { - if ((abr)&&(abr.id)&&(abr.id.length === 10)&&(ztDbTrue(abr['activeBridge']))) { + if ( (abr) && + (abr.id) && + (abr.id.length === 10) && + ( (!ztDbTrue(network['private'])) || ztDbTrue(abr['authorized']) ) && + (ztDbTrue(abr['activeBridge'])) ) { if (activeBridges.length) activeBridges += ','; activeBridges += abr.id; -- cgit v1.2.3