aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/web/api/src/test/resources/org/onosproject/rest/post-intent.json
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/onos/web/api/src/test/resources/org/onosproject/rest/post-intent.json')
-rw-r--r--framework/src/onos/web/api/src/test/resources/org/onosproject/rest/post-intent.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/framework/src/onos/web/api/src/test/resources/org/onosproject/rest/post-intent.json b/framework/src/onos/web/api/src/test/resources/org/onosproject/rest/post-intent.json
new file mode 100644
index 00000000..b01ef877
--- /dev/null
+++ b/framework/src/onos/web/api/src/test/resources/org/onosproject/rest/post-intent.json
@@ -0,0 +1,38 @@
+{
+ "type": "PointToPointIntent",
+ "appId": "myApp",
+ "selector": {
+ "criteria": [
+ {
+ "type": "ETH_DST",
+ "mac": "11:22:33:44:55:66"
+ }
+ ]
+ },
+ "treatment": {
+ "instructions": [
+ {
+ "type": "L2MODIFICATION",
+ "subtype": "ETH_SRC",
+ "mac": "22:33:44:55:66:77"
+ }
+ ],
+ "deferred": []
+ },
+ "priority": 55,
+ "constraints": [
+ {
+ "inclusive": false,
+ "types": ["OPTICAL"],
+ "type": "LinkTypeConstraint"
+ }
+ ],
+ "ingressPoint": {
+ "port": "1",
+ "device": "of:0000000000000001"
+ },
+ "egressPoint": {
+ "port": "2",
+ "device": "of:0000000000000007"
+ }
+}