Simon Hunt

CORD Subscriber GUI -- Updated sample JSON to reflect current thinking.

Change-Id: Iae85cbe03c46f58341ed6ae973ebf066fda894d7
......@@ -5,14 +5,14 @@
{
"id": "internet",
"name": "Internet",
"active": true,
"editable": false
"desc": "Basic internet connectivity",
"params": {}
},
{
"id": "firewall",
"name": "Firewall",
"active": true,
"editable": true
"desc": "Normal firewall protection",
"params": {}
}
]
}
......
......@@ -5,22 +5,23 @@
{
"id": "internet",
"name": "Internet",
"active": true,
"editable": false
"desc": "Basic internet connectivity",
"params": {}
},
{
"id": "firewall",
"name": "Firewall",
"active": true,
"editable": true
"desc": "Normal firewall protection",
"params": {}
},
{
"id": "url_filter",
"id": "url_filtering",
"name": "Parental Control",
"level": "PG",
"levels": [ "PG", "PG-13", "R" ],
"active": true,
"editable": true
"desc": "Variable levels of URL filtering",
"params": {
"level": "PG",
"levels": [ "PG", "PG-13", "R" ]
}
}
]
}
......
{
"bundle": {
"name": "Basic Bundle",
"functions": [
{
"id": "internet",
"name": "Internet",
"active": true
},
{
"id": "firewall",
"name": "Firewall",
"active": true
}
]
},
"bundle": "Basic Bundle",
"users": [
{ "id": 1, "name": "Mom", "role": "Admin" },
{ "id": 2, "name": "Dad", "role": "Admin" },
{ "id": 3, "name": "Dick", "role": "User" },
{ "id": 4, "name": "Jane", "role": "User" }
{ "id": 1, "name": "Mom's MacBook", "mac": "00:11:22:33:44:55" },
{ "id": 1, "name": "Dad's iPad", "mac": "00:11:22:33:44:66" },
{ "id": 1, "name": "Dick's laptop", "mac": "00:11:22:33:44:77" },
{ "id": 1, "name": "Jane's laptop", "mac": "00:11:22:33:44:88" }
]
}
......
{
"bundle": {
"name": "Family Bundle",
"functions": [
{
"id": "internet",
"name": "Internet",
"active": true
},
{
"id": "firewall",
"name": "Firewall",
"active": true
},
{
"id": "url_filter",
"name": "Parental Control",
"level": "PG",
"active": true
}
]
},
"bundle": "Family Bundle",
"users": [
{ "id": 1, "name": "Mom", "role": "Admin" },
{ "id": 2, "name": "Dad", "role": "Admin" },
{ "id": 3, "name": "Dick", "role": "User" },
{ "id": 4, "name": "Jane", "role": "User" }
{ "id": 1, "name": "Mom's MacBook", "mac": "00:11:22:33:44:55" },
{ "id": 1, "name": "Dad's iPad", "mac": "00:11:22:33:44:66" },
{ "id": 1, "name": "Dick's laptop", "mac": "00:11:22:33:44:77" },
{ "id": 1, "name": "Jane's laptop", "mac": "00:11:22:33:44:88" }
]
}
......
......@@ -2,26 +2,26 @@
"users": [
{
"id": 1,
"name": "Mom",
"role": { "id": "admin", "name": "Admin"},
"name": "Mom's MacBook",
"mac": "01:02:03:04:05:06",
"profile": { }
},
{
"id": 2,
"name": "Dad",
"role": { "id": "admin", "name": "Admin"}
"name": "Dad's iPad",
"mac": "01:02:03:04:05:77",
"profile": { }
},
{
"id": 3,
"name": "Dick",
"role": { "id": "user", "name": "User"}
"name": "Dick's laptop",
"mac": "01:02:03:04:05:88",
"profile": { }
},
{
"id": 4,
"name": "Jane",
"role": { "id": "user", "name": "User"}
"name": "Jane's laptop",
"mac": "01:02:03:04:05:99",
"profile": { }
}
]
......
......@@ -2,41 +2,40 @@
"users": [
{
"id": 1,
"name": "Mom",
"role": { "id": "admin", "name": "Admin"},
"name": "Mom's MacBook",
"mac": "01:02:03:04:05:06",
"profile": {
"url_filter": {
"enabled": false
"url_filtering": {
"level": "R"
}
}
},
{
"id": 2,
"name": "Dad",
"role": { "id": "admin", "name": "Admin"},
"name": "Dad's iPad",
"mac": "01:02:03:04:05:77",
"profile": {
"url_filter": {
"enabled": false
"url_filtering": {
"level": "R"
}
}
},
{
"id": 3,
"name": "Dick",
"role": { "id": "user", "name": "User"},
"name": "Dick's laptop",
"mac": "01:02:03:04:05:88",
"profile": {
"url_filter": {
"enabled": false
"url_filtering": {
"level": "PG-13"
}
}
},
{
"id": 4,
"name": "Jane",
"role": { "id": "user", "name": "User"},
"name": "Jane's laptop",
"mac": "01:02:03:04:05:99",
"profile": {
"url_filter": {
"enabled": false,
"url_filtering": {
"level": "PG"
}
}
......
{
"users": [
{
"role": "admin",
"name": "mom",
"id": 1
"id": 1,
"name": "Mom's MacBook",
"mac": "01:02:03:04:05:06"
},
{
"role": "admin",
"name": "dad",
"id": 2
"id": 2,
"name": "Dad's iPad",
"mac": "01:02:03:04:05:77"
},
{
"role": "user",
"name": "kid1",
"id": 3
"id": 3,
"name": "Dick's laptop",
"mac": "01:02:03:04:05:88"
},
{
"role": "user",
"name": "kid2",
"id": 4
"id": 4,
"name": "Jane's laptop",
"mac": "01:02:03:04:05:99"
}
]
}
......