initdb changes

This commit is contained in:
Adam Ierymenko 2014-09-03 19:15:53 -04:00
parent b8d29cb6ba
commit 6497a4a0f6

View file

@ -11,8 +11,8 @@ var INIT_DATA = {
* 24-bit network ID. This will create the full 16-digit network ID of the * 24-bit network ID. This will create the full 16-digit network ID of the
* network you will join. This must be in the object name and in the "id" * network you will join. This must be in the object name and in the "id"
* field within the object itself. */ * field within the object itself. */
"zt1:network:ffffffffff111111:~": { "zt1:network:d40e9d860d111111:~": {
"id": "ffffffffff111111", // netconf master ZT address + 24-bit ID "id": "d40e9d860d111111", // netconf master ZT address + 24-bit ID
"name": "zerotier-testnet", // short name, no spaces or special chars "name": "zerotier-testnet", // short name, no spaces or special chars
"desc": "Test Network", // description "desc": "Test Network", // description
"infrastructure": 0, // unused by netconf-master "infrastructure": 0, // unused by netconf-master
@ -22,15 +22,13 @@ var INIT_DATA = {
"etherTypes": "0800,0806", // hex ethernet frame types allowed "etherTypes": "0800,0806", // hex ethernet frame types allowed
"enableBroadcast": 1, // set to '1' to enable ff:ff:ff:ff:ff:ff "enableBroadcast": 1, // set to '1' to enable ff:ff:ff:ff:ff:ff
"v4AssignMode": "zt", // 'zt' to assign, 'none' to let OS do it "v4AssignMode": "zt", // 'zt' to assign, 'none' to let OS do it
"v4AssignPool": "28.0.0.0/7", // IPv4 net block / netmask bits "v4AssignPool": "192.168.123.0/24", // IPv4 net block / netmask bits
"v6AssignMode": "none" // 'zt' to assign, 'none' to let OS do it "v6AssignMode": "none" // 'zt' to assign, 'none' to let OS do it
} }
}; };
var config = require('./config.js'); var config = require('./config.js');
config.redisDb = 2;
var async = require('async'); var async = require('async');
var redis = require('redis'); var redis = require('redis');
var DB = redis.createClient(); var DB = redis.createClient();