summaryrefslogtreecommitdiff
path: root/netconf-service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-04 09:27:56 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-04 09:27:56 -0400
commit37931d8589359580c05baef64b6752315dccbe66 (patch)
tree4937d8397fd85b8ee585a22727f7c1bc5a7fb52d /netconf-service
parentf3ad05347e55de2fd2a500464acde0979df9941f (diff)
downloadinfinitytier-37931d8589359580c05baef64b6752315dccbe66.tar.gz
infinitytier-37931d8589359580c05baef64b6752315dccbe66.zip
Multicast bandwidth accounting work in progress, and some config field changes and cleanup.
Diffstat (limited to 'netconf-service')
-rw-r--r--netconf-service/netconf.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/netconf-service/netconf.cpp b/netconf-service/netconf.cpp
index aaff432f..08ff33d2 100644
--- a/netconf-service/netconf.cpp
+++ b/netconf-service/netconf.cpp
@@ -245,13 +245,14 @@ int main(int argc,char **argv)
Dictionary netconf;
- netconf["peer"] = peerIdentity.address().toString();
sprintf(buf,"%.16llx",(unsigned long long)nwid);
netconf["nwid"] = buf;
- netconf["isOpen"] = (isOpen ? "1" : "0");
+ netconf["isOpen"] = (isOpen ? "1" : "0"); // TODO: remove, old name
+ netconf["o"] = (isOpen ? "1" : "0");
netconf["name"] = name;
netconf["desc"] = desc;
- netconf["etherTypes"] = etherTypeWhitelist;
+ netconf["etherTypes"] = etherTypeWhitelist; // TODO: remove, old name
+ netconf["et"] = etherTypeWhitelist;
sprintf(buf,"%llx",(unsigned long long)Utils::now());
netconf["ts"] = buf;
@@ -326,12 +327,16 @@ int main(int argc,char **argv)
}
}
- if (ipv4Static.length())
- netconf["ipv4Static"] = ipv4Static;
- if (ipv6Static.length())
- netconf["ipv6Static"] = ipv6Static;
+ // Add static assignments to netconf, if any
+ if (ipv4Static.length()) {
+ netconf["ipv4Static"] = ipv4Static; // TODO: remove, old name
+ netconf["v4s"] = ipv4Static;
+ }
+ if (ipv6Static.length()) {
+ netconf["v6s"] = ipv6Static;
+ }
- {
+ { // Create and send service bus response with payload attached as 'netconf'
Dictionary response;
response["peer"] = peerIdentity.address().toString();
response["nwid"] = request.get("nwid");