Skip to content

Instantly share code, notes, and snippets.

@kostko
Last active August 29, 2015 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kostko/9b6eb44f373e17891d65 to your computer and use it in GitHub Desktop.
Save kostko/9b6eb44f373e17891d65 to your computer and use it in GitHub Desktop.
Example JSON serialization of nodewatcher v3 schema
{
"uuid": "64840ad9-aac1-4494-b4d1-9de5d8cbedd9",
"general": {
"name": "node-1",
"device": "tp-wr743ndv1",
"build_channel": "stable",
"version": null
},
"location": {
"address": "Foo Street 17",
"city": "Ljubljana",
"country": "Slovenia",
"geolocation": {
"type": "Point",
"coordinates": [46.0661173, 14.5320991]
},
"altitude": 0.0
},
"router-id": [
{
"family": "ipv4",
"id": "10.254.147.225"
}
],
"authentication": [
{
"type": "public-key",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADA...Oipsw25uxIvkDKjAxzQ== user@host"
}
],
"interfaces": [
{
"type": "ethernet",
"enabled": true,
"routing_protocol": "olsr",
"eth_port": "lan0",
"uplink": false
},
{
"type": "ethernet",
"enabled": true,
"eth_port": "wan0",
"uplink": true,
"networks": [
{
"type": "dhcp"
}
]
},
{
"type": "radio",
"wifi_radio": "wifi0",
"protocol": "ieee-80211bgn",
"channel": 8,
"channel_width": "ht40l",
"bitrate": 54,
"ack_distance": 1000,
"rts_threshold": 1400,
"frag_threshold": 1400,
"vifs": [
{
"mode": "mesh",
"essid": "mesh.wlan-si.net",
"bssid": "02:CA:FF:EE:BA:BE",
"routing_protocol": "olsr",
"networks": [
{
"type": "allocated",
"address": "10.254.147.225/27"
}
]
},
{
"mode": "ap",
"essid": "open.wlan-si.net",
"networks": [
{
"type": "allocated",
"address": "10.254.149.225/27",
"routing_announce": "olsr"
}
]
}
]
},
{
"type": "vpn",
"protocol": "tunneldigger",
"mac": "b6:52:1b:8b:5c:0f",
"servers": [
"46.54.226.43:8942",
"46.54.226.43:53",
"46.54.226.43:123",
"92.53.140.74:8942",
"92.53.140.74:53",
"92.53.140.74:123"
],
"limits": [
{
"type": "throughput",
"limit_in": 1024,
"limit_out": 1024
}
]
}
],
"dns": [
{
"address": "10.254.0.1"
},
{
"address": "10.254.0.2"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment