Committed by
Gerrit Code Review
CORD Subscriber GUI -- Additional examples of responses from XOS.
Change-Id: I98d283a9eb009956c0188d94410f5798e69cdadd
Showing
7 changed files
with
234 additions
and
28 deletions
| 1 | +/* | ||
| 2 | + * Copyright 2015 Open Networking Laboratory | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + * | ||
| 16 | + */ | ||
| 17 | + | ||
| 18 | +package org.onosproject.cord.gui; | ||
| 19 | + | ||
| 20 | +/** | ||
| 21 | + * Encapsulation of interactions with XOS. | ||
| 22 | + */ | ||
| 23 | +public class XosManager { | ||
| 24 | + | ||
| 25 | +} |
apps/demo/cord-gui/src/main/resources/org/onosproject/cord/gui/xos/subscriber-92-users-MOD.json
0 → 100644
| 1 | +{ | ||
| 2 | + "users": [ | ||
| 3 | + { | ||
| 4 | + "mac": "010203040506", | ||
| 5 | + "name": "Moms laptop", | ||
| 6 | + "id": 0 | ||
| 7 | + }, | ||
| 8 | + { | ||
| 9 | + "mac": "010203040507", | ||
| 10 | + "name": "Dads desktop", | ||
| 11 | + "id": 1 | ||
| 12 | + }, | ||
| 13 | + { | ||
| 14 | + "id": 2, | ||
| 15 | + "mac": "010203040507", | ||
| 16 | + "name": "Jacks iPad", | ||
| 17 | + "level": "PG" | ||
| 18 | + }, | ||
| 19 | + { | ||
| 20 | + "mac": "010203040508", | ||
| 21 | + "name": "Jills iPad", | ||
| 22 | + "id": 3 | ||
| 23 | + } | ||
| 24 | + ] | ||
| 25 | +} |
apps/demo/cord-gui/src/main/resources/org/onosproject/cord/gui/xos/subscriber-92-users.json
0 → 100644
| 1 | +{ | ||
| 2 | + "users": [ | ||
| 3 | + { | ||
| 4 | + "mac": "010203040506", | ||
| 5 | + "name": "Moms laptop", | ||
| 6 | + "id": 0 | ||
| 7 | + }, | ||
| 8 | + { | ||
| 9 | + "mac": "010203040507", | ||
| 10 | + "name": "Dads desktop", | ||
| 11 | + "id": 1 | ||
| 12 | + }, | ||
| 13 | + { | ||
| 14 | + "mac": "010203040507", | ||
| 15 | + "name": "Jacks iPad", | ||
| 16 | + "id": 2 | ||
| 17 | + }, | ||
| 18 | + { | ||
| 19 | + "mac": "010203040508", | ||
| 20 | + "name": "Jills iPad", | ||
| 21 | + "id": 3 | ||
| 22 | + } | ||
| 23 | + ] | ||
| 24 | +} |
| 1 | +{ | ||
| 2 | + "humanReadableName": "vOLT on service 1", | ||
| 3 | + "id": 92, | ||
| 4 | + "service_specific_id": "33445573", | ||
| 5 | + "vlan_id": "77889908", | ||
| 6 | + "vcpe_id": 93, | ||
| 7 | + "sliver": 108, | ||
| 8 | + "sliver_name": "mysite_vcpe", | ||
| 9 | + "image": 1, | ||
| 10 | + "image_name": "Ubuntu-14.04-LTS", | ||
| 11 | + "firewall_enable": false, | ||
| 12 | + "firewall_rules": "accept all anywhere anywhere", | ||
| 13 | + "url_filter_enable": false, | ||
| 14 | + "url_filter_rules": "allow all", | ||
| 15 | + "url_filter_level": "R", | ||
| 16 | + "cdn_enable": false, | ||
| 17 | + "vbng_id": 94, | ||
| 18 | + "routeable_subnet": "", | ||
| 19 | + "nat_ip": "172.16.0.106", | ||
| 20 | + "lan_ip": "12.0.0.16", | ||
| 21 | + "wan_ip": "11.0.0.16", | ||
| 22 | + "private_ip": "10.0.6.43" | ||
| 23 | +} |
| 1 | { | 1 | { |
| 2 | "subscribers": [ | 2 | "subscribers": [ |
| 3 | { | 3 | { |
| 4 | - "humanReadableName": "vOLT on service 16", | 4 | + "humanReadableName": "vOLT on service 1", |
| 5 | - "id": 8, | 5 | + "id": 92, |
| 6 | - "service_specific_id": "9999", | 6 | + "service_specific_id": "33445573", |
| 7 | - "vlan_id": 8888, | 7 | + "vlan_id": "77889908", |
| 8 | - "vcpe_id": 9, | 8 | + "vcpe_id": 93, |
| 9 | - "sliver": 379, | 9 | + "sliver": 108, |
| 10 | - "sliver_name": "onlab_test405", | 10 | + "sliver_name": "mysite_vcpe", |
| 11 | - "image": 29, | 11 | + "image": 1, |
| 12 | - "image_name": "Ubuntu 14.04 LTS", | 12 | + "image_name": "Ubuntu-14.04-LTS", |
| 13 | - "firewall_enable": true, | 13 | + "firewall_enable": false, |
| 14 | - "firewall_rules": "accept tcp anywhere anywhere dpt 80\naccept tcp anywhere anywhere dpt 443\naccept tcp anywhere anywhere dpt 22", | 14 | + "firewall_rules": "accept all anywhere anywhere", |
| 15 | - "url_filter_enable": true, | 15 | + "url_filter_enable": false, |
| 16 | "url_filter_rules": "allow all", | 16 | "url_filter_rules": "allow all", |
| 17 | - "url_filter_level": "PG", | 17 | + "url_filter_level": "R", |
| 18 | "cdn_enable": false, | 18 | "cdn_enable": false, |
| 19 | - "vbng_id": 10, | 19 | + "vbng_id": 94, |
| 20 | - "routeable_subnet": "placeholder-from-observer" | 20 | + "routeable_subnet": "", |
| 21 | + "nat_ip": "172.16.0.106", | ||
| 22 | + "lan_ip": "12.0.0.16", | ||
| 23 | + "wan_ip": "11.0.0.16", | ||
| 24 | + "private_ip": "10.0.6.43" | ||
| 21 | }, | 25 | }, |
| 22 | { | 26 | { |
| 23 | - "humanReadableName": "vOLT on service 16", | 27 | + "humanReadableName": "vOLT on service 1", |
| 24 | - "id": 1, | 28 | + "id": 138, |
| 25 | "service_specific_id": "", | 29 | "service_specific_id": "", |
| 26 | - "vlan_id": null, | 30 | + "vlan_id": "100", |
| 27 | - "vcpe_id": 2, | 31 | + "vcpe_id": 139, |
| 28 | - "sliver": 384, | 32 | + "sliver": 106, |
| 29 | - "sliver_name": "onlab_vcpe", | 33 | + "sliver_name": "mysite_vcpe", |
| 30 | - "image": 29, | 34 | + "image": 1, |
| 31 | - "image_name": "Ubuntu 14.04 LTS", | 35 | + "image_name": "Ubuntu-14.04-LTS", |
| 32 | - "firewall_enable": true, | 36 | + "firewall_enable": false, |
| 37 | + "firewall_rules": "accept all anywhere anywhere", | ||
| 38 | + "url_filter_enable": false, | ||
| 39 | + "url_filter_rules": "allow all", | ||
| 40 | + "url_filter_level": "PG", | ||
| 41 | + "cdn_enable": false, | ||
| 42 | + "vbng_id": 140, | ||
| 43 | + "routeable_subnet": "", | ||
| 44 | + "nat_ip": "172.16.0.104", | ||
| 45 | + "lan_ip": "12.0.0.14", | ||
| 46 | + "wan_ip": "11.0.0.14", | ||
| 47 | + "private_ip": "10.0.6.41" | ||
| 48 | + }, | ||
| 49 | + { | ||
| 50 | + "humanReadableName": "vOLT on service 1", | ||
| 51 | + "id": 154, | ||
| 52 | + "service_specific_id": "98765", | ||
| 53 | + "vlan_id": "99", | ||
| 54 | + "vcpe_id": 155, | ||
| 55 | + "sliver": 117, | ||
| 56 | + "sliver_name": "mysite_vcpe", | ||
| 57 | + "image": 1, | ||
| 58 | + "image_name": "Ubuntu-14.04-LTS", | ||
| 59 | + "firewall_enable": false, | ||
| 60 | + "firewall_rules": "accept all anywhere anywhere", | ||
| 61 | + "url_filter_enable": false, | ||
| 62 | + "url_filter_rules": "allow all", | ||
| 63 | + "url_filter_level": "PG", | ||
| 64 | + "cdn_enable": false, | ||
| 65 | + "vbng_id": 156, | ||
| 66 | + "routeable_subnet": "", | ||
| 67 | + "nat_ip": "172.16.0.114", | ||
| 68 | + "lan_ip": "12.0.0.24", | ||
| 69 | + "wan_ip": "11.0.0.24", | ||
| 70 | + "private_ip": "10.0.6.48" | ||
| 71 | + }, | ||
| 72 | + { | ||
| 73 | + "humanReadableName": "vOLT on service 1", | ||
| 74 | + "id": 157, | ||
| 75 | + "service_specific_id": "5678", | ||
| 76 | + "vlan_id": "999", | ||
| 77 | + "vcpe_id": 158, | ||
| 78 | + "sliver": 118, | ||
| 79 | + "sliver_name": "mysite_vcpe", | ||
| 80 | + "image": 1, | ||
| 81 | + "image_name": "Ubuntu-14.04-LTS", | ||
| 82 | + "firewall_enable": false, | ||
| 33 | "firewall_rules": "accept all anywhere anywhere", | 83 | "firewall_rules": "accept all anywhere anywhere", |
| 34 | - "url_filter_enable": true, | 84 | + "url_filter_enable": false, |
| 35 | "url_filter_rules": "allow all", | 85 | "url_filter_rules": "allow all", |
| 36 | "url_filter_level": "PG", | 86 | "url_filter_level": "PG", |
| 37 | - "cdn_enable": true, | 87 | + "cdn_enable": false, |
| 38 | - "vbng_id": 4, | 88 | + "vbng_id": 159, |
| 39 | - "routeable_subnet": "1.1.1.1/4" | 89 | + "routeable_subnet": "", |
| 90 | + "nat_ip": "172.16.0.119", | ||
| 91 | + "lan_ip": "12.0.0.29", | ||
| 92 | + "wan_ip": "11.0.0.29", | ||
| 93 | + "private_ip": "10.0.6.53" | ||
| 94 | + }, | ||
| 95 | + { | ||
| 96 | + "humanReadableName": "vOLT on service 1", | ||
| 97 | + "id": 160, | ||
| 98 | + "service_specific_id": "1", | ||
| 99 | + "vlan_id": "100", | ||
| 100 | + "vcpe_id": 161, | ||
| 101 | + "sliver": 119, | ||
| 102 | + "sliver_name": "mysite_vcpe", | ||
| 103 | + "image": 1, | ||
| 104 | + "image_name": "Ubuntu-14.04-LTS", | ||
| 105 | + "firewall_enable": false, | ||
| 106 | + "firewall_rules": "accept all anywhere anywhere", | ||
| 107 | + "url_filter_enable": false, | ||
| 108 | + "url_filter_rules": "allow all", | ||
| 109 | + "url_filter_level": "PG", | ||
| 110 | + "cdn_enable": false, | ||
| 111 | + "vbng_id": 162, | ||
| 112 | + "routeable_subnet": "", | ||
| 113 | + "nat_ip": "172.16.0.120", | ||
| 114 | + "lan_ip": "12.0.0.30", | ||
| 115 | + "wan_ip": "11.0.0.30", | ||
| 116 | + "private_ip": "10.0.6.54" | ||
| 117 | + }, | ||
| 118 | + { | ||
| 119 | + "humanReadableName": "vOLT on service 1", | ||
| 120 | + "id": 163, | ||
| 121 | + "service_specific_id": "101", | ||
| 122 | + "vlan_id": "101", | ||
| 123 | + "vcpe_id": 164, | ||
| 124 | + "sliver": 120, | ||
| 125 | + "sliver_name": "mysite_vcpe", | ||
| 126 | + "image": 1, | ||
| 127 | + "image_name": "Ubuntu-14.04-LTS", | ||
| 128 | + "firewall_enable": false, | ||
| 129 | + "firewall_rules": "accept all anywhere anywhere", | ||
| 130 | + "url_filter_enable": false, | ||
| 131 | + "url_filter_rules": "allow all", | ||
| 132 | + "url_filter_level": "PG", | ||
| 133 | + "cdn_enable": false, | ||
| 134 | + "vbng_id": 165, | ||
| 135 | + "routeable_subnet": "", | ||
| 136 | + "nat_ip": "172.16.0.121", | ||
| 137 | + "lan_ip": "12.0.0.31", | ||
| 138 | + "wan_ip": "11.0.0.31", | ||
| 139 | + "private_ip": "10.0.6.55" | ||
| 40 | } | 140 | } |
| 41 | ] | 141 | ] |
| 42 | } | 142 | } | ... | ... |
-
Please register or login to post a comment