aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/tools/test/configs
diff options
context:
space:
mode:
authorAshlee Young <ashlee@onosfw.com>2015-09-09 22:15:21 -0700
committerAshlee Young <ashlee@onosfw.com>2015-09-09 22:15:21 -0700
commit13d05bc8458758ee39cb829098241e89616717ee (patch)
tree22a4d1ce65f15952f07a3df5af4b462b4697cb3a /framework/src/onos/tools/test/configs
parent6139282e1e93c2322076de4b91b1c85d0bc4a8b3 (diff)
ONOS checkin based on commit tag e796610b1f721d02f9b0e213cf6f7790c10ecd60
Change-Id: Ife8810491034fe7becdba75dda20de4267bd15cd
Diffstat (limited to 'framework/src/onos/tools/test/configs')
-rw-r--r--framework/src/onos/tools/test/configs/l2-flow.json28
-rw-r--r--framework/src/onos/tools/test/configs/override-basic.json38
-rw-r--r--framework/src/onos/tools/test/configs/sample-basic.json54
3 files changed, 120 insertions, 0 deletions
diff --git a/framework/src/onos/tools/test/configs/l2-flow.json b/framework/src/onos/tools/test/configs/l2-flow.json
new file mode 100644
index 00000000..64bb5297
--- /dev/null
+++ b/framework/src/onos/tools/test/configs/l2-flow.json
@@ -0,0 +1,28 @@
+{
+ "isPermanent": true,
+ "priority": 100,
+ "selector": {
+ "criteria": [
+ {
+ "port": 2,
+ "type": "IN_PORT"
+ },
+ {
+ "mac": "00:00:00:00:11:22",
+ "type": "ETH_SRC"
+ },
+ {
+ "mac": "00:00:00:00:33:44",
+ "type": "ETH_DST"
+ }
+ ]
+ },
+ "treatment": {
+ "instructions": [
+ {
+ "port": 1,
+ "type": "OUTPUT"
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/framework/src/onos/tools/test/configs/override-basic.json b/framework/src/onos/tools/test/configs/override-basic.json
new file mode 100644
index 00000000..c1f23ce6
--- /dev/null
+++ b/framework/src/onos/tools/test/configs/override-basic.json
@@ -0,0 +1,38 @@
+{
+ "devices": {
+ "of:0000000000000009": {
+ "basic": {
+ "allowed": true,
+ "owner": "Luigi"
+ }
+ },
+ "of:0000000000000008": {
+ "basic": {
+ "name": "NameChangeAgain",
+ "allowed": true,
+ "owner": "Mario"
+ }
+ },
+ "of:0000000000000007": {
+ "basic": {
+ "allowed": true,
+ "owner": "Peach",
+ "latitude": "25"
+ }
+ }
+ },
+ "links": {
+ "of:0000000000000006/2-of:0000000000000007/2": {
+ "basic": {
+ "allowed": true
+ }
+ }
+ },
+ "hosts": {
+ "00:00:00:00:00:03/-1": {
+ "basic": {
+ "allowed": true
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/framework/src/onos/tools/test/configs/sample-basic.json b/framework/src/onos/tools/test/configs/sample-basic.json
new file mode 100644
index 00000000..73cbd305
--- /dev/null
+++ b/framework/src/onos/tools/test/configs/sample-basic.json
@@ -0,0 +1,54 @@
+{
+ "devices": {
+ "of:0000000000000009": {
+ "basic": {
+ "allowed": true,
+ "owner": "Luigi"
+ }
+ },
+ "of:0000000000000008": {
+ "basic": {
+ "name": "NameChange",
+ "allowed": true,
+ "owner": "Mario"
+ }
+ },
+ "of:0000000000000007": {
+ "basic": {
+ "allowed": true,
+ "owner": "Peach",
+ "latitude": "25"
+ }
+ },
+ "of:0000000000000003": {
+ "basic": {
+ "allowed": true,
+ "owner": "Wario"
+ }
+ }
+ },
+ "links": {
+ "of:0000000000000006/2-of:0000000000000007/2": {
+ "basic": {
+ "allowed": true
+ }
+ }
+ },
+ "hosts": {
+ "00:00:00:00:00:03/-1": {
+ "basic": {
+ "allowed": false
+ }
+ },
+ "00:00:00:00:00:02/-1": {
+ "basic": {
+ "allowed": false
+ }
+ },
+ "00:00:00:00:00:01/-1": {
+ "basic": {
+ "allowed": false
+ }
+ }
+ }
+} \ No newline at end of file