diff options
author | 2015-09-09 22:15:21 -0700 | |
---|---|---|
committer | 2015-09-09 22:15:21 -0700 | |
commit | 13d05bc8458758ee39cb829098241e89616717ee (patch) | |
tree | 22a4d1ce65f15952f07a3df5af4b462b4697cb3a /framework/src/onos/core/common/src/test/resources/org/onosproject/codec | |
parent | 6139282e1e93c2322076de4b91b1c85d0bc4a8b3 (diff) |
ONOS checkin based on commit tag e796610b1f721d02f9b0e213cf6f7790c10ecd60
Change-Id: Ife8810491034fe7becdba75dda20de4267bd15cd
Diffstat (limited to 'framework/src/onos/core/common/src/test/resources/org/onosproject/codec')
14 files changed, 205 insertions, 0 deletions
diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/AnnotationConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/AnnotationConstraint.json new file mode 100644 index 00000000..aaa72a72 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/AnnotationConstraint.json @@ -0,0 +1,5 @@ +{ + "type":"AnnotationConstraint", + "key":"key", + "threshold":123.0 +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/AsymmetricPathConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/AsymmetricPathConstraint.json new file mode 100644 index 00000000..340bdbac --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/AsymmetricPathConstraint.json @@ -0,0 +1,3 @@ +{ + "type":"AsymmetricPathConstraint" +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/BandwidthConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/BandwidthConstraint.json new file mode 100644 index 00000000..34750061 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/BandwidthConstraint.json @@ -0,0 +1,4 @@ +{ + "type":"BandwidthConstraint", + "bandwidth":345.678 +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/HostToHostIntent.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/HostToHostIntent.json new file mode 100644 index 00000000..fedea251 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/HostToHostIntent.json @@ -0,0 +1,19 @@ +{ + "type": "HostToHostIntent", + "appId": "test", + "selector": {"criteria": []}, + "treatment": { + "instructions": [], + "deferred": [] + }, + "priority": 7, + "constraints": [ + { + "inclusive": false, + "types": ["OPTICAL"], + "type": "LinkTypeConstraint" + } + ], + "one": "00:00:00:00:00:02/-1", + "two": "00:00:00:00:00:05/-1" +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LambdaConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LambdaConstraint.json new file mode 100644 index 00000000..4ac37631 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LambdaConstraint.json @@ -0,0 +1,4 @@ +{ + "type":"LambdaConstraint", + "lambda":444 +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LatencyConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LatencyConstraint.json new file mode 100644 index 00000000..1c46e5e8 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LatencyConstraint.json @@ -0,0 +1,4 @@ +{ + "type":"LatencyConstraint", + "latencyMillis":111 +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LinkTypeConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LinkTypeConstraint.json new file mode 100644 index 00000000..8b766da0 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/LinkTypeConstraint.json @@ -0,0 +1,5 @@ +{ + "inclusive":false, + "types":["DIRECT","OPTICAL"], + "type":"LinkTypeConstraint" +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/ObstacleConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/ObstacleConstraint.json new file mode 100644 index 00000000..35dcb0fe --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/ObstacleConstraint.json @@ -0,0 +1,4 @@ +{ + "type":"ObstacleConstraint", + "obstacles":["of:dev1","of:dev2","of:dev3"] +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/PointToPointIntent.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/PointToPointIntent.json new file mode 100644 index 00000000..b941bef8 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/PointToPointIntent.json @@ -0,0 +1,38 @@ +{ + "type": "PointToPointIntent", + "appId": "test", + "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" + } +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/WaypointConstraint.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/WaypointConstraint.json new file mode 100644 index 00000000..7009cf98 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/WaypointConstraint.json @@ -0,0 +1,4 @@ +{ + "type":"WaypointConstraint", + "waypoints":["of:devA","of:devB","of:devC"] +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/criteria-flow.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/criteria-flow.json new file mode 100644 index 00000000..1a96e92f --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/criteria-flow.json @@ -0,0 +1,44 @@ +{ + "priority":1, + "isPermanent":"false", + "timeout":1, + "deviceId":"of:0000000000000001", + "selector": + {"criteria": + [ + {"type":"IN_PORT", "port":23}, + {"type":"IN_PHY_PORT", "port":44}, + {"type":"METADATA", "metadata":123456}, + {"type":"ETH_TYPE","ethType":2054}, + {"type":"ETH_SRC","mac":"00:11:22:33:44:55"}, + {"type":"ETH_DST","mac":"00:11:22:33:44:55"}, + {"type":"VLAN_VID","vlanId":777}, + {"type":"VLAN_PCP","priority":3}, + {"type":"IP_DSCP","ipDscp":2}, + {"type":"IP_ECN","ipEcn":1}, + {"type":"IP_PROTO","protocol":4}, + {"type":"IPV4_SRC", "ip":"1.2.0.0/32"}, + {"type":"IPV4_DST", "ip":"2.2.0.0/32"}, + {"type":"IPV6_SRC", "ip":"3.2.0.0/32"}, + {"type":"IPV6_DST", "ip":"4.2.0.0/32"}, + {"type":"TCP_SRC", "tcpPort":80}, + {"type":"TCP_DST", "tcpPort":443}, + {"type":"UDP_SRC", "udpPort":180}, + {"type":"UDP_DST", "udpPort":1443}, + {"type":"SCTP_SRC", "sctpPort":280}, + {"type":"SCTP_DST", "sctpPort":2443}, + {"type":"ICMPV4_TYPE", "icmpType":24}, + {"type":"ICMPV4_CODE", "icmpCode":16}, + {"type":"ICMPV6_TYPE", "icmpv6Type":14}, + {"type":"ICMPV6_CODE", "icmpv6Code":6}, + {"type":"IPV6_FLABEL", "flowLabel":8}, + {"type":"IPV6_ND_TARGET", "targetAddress":"1111:2222:3333:4444:5555:6666:7777:8888"}, + {"type":"IPV6_ND_SLL", "mac":"00:11:22:33:44:56"}, + {"type":"IPV6_ND_TLL", "mac":"00:11:22:33:44:57"}, + {"type":"MPLS_LABEL", "label":123}, + {"type":"IPV6_EXTHDR", "exthdrFlags":99}, + {"type":"OCH_SIGID", "lambda":122}, + {"type":"TUNNEL_ID", "tunnelId":100} + ] + } +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/instructions-flow.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/instructions-flow.json new file mode 100644 index 00000000..74b9546a --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/instructions-flow.json @@ -0,0 +1,39 @@ +{ + "priority":1, + "isPermanent":"false", + "timeout":1, + "deviceId":"of:0000000000000001", + "treatment": + { + "instructions": + [ + {"type":"OUTPUT","port":-3}, + {"type":"DROP"}, + {"type":"L2MODIFICATION","subtype":"ETH_SRC","mac":"12:34:56:78:90:12"}, + {"type":"L2MODIFICATION","subtype":"ETH_DST","mac":"98:76:54:32:01:00"}, + {"type":"L2MODIFICATION","subtype":"VLAN_ID","vlanId":22}, + {"type":"L2MODIFICATION","subtype":"VLAN_PCP","vlanPcp":1}, + {"type":"L2MODIFICATION","subtype":"MPLS_LABEL","label":1048575}, + {"type":"L2MODIFICATION","subtype":"MPLS_PUSH"}, + {"type":"L2MODIFICATION","subtype":"MPLS_POP"}, + {"type":"L2MODIFICATION","subtype":"DEC_MPLS_TTL"}, + {"type":"L2MODIFICATION","subtype":"VLAN_POP"}, + {"type":"L2MODIFICATION","subtype":"VLAN_PUSH"}, + {"type":"L2MODIFICATION","subtype":"TUNNEL_ID", "tunnelId":100}, + {"type":"L3MODIFICATION","subtype":"IPV4_SRC", "ip":"1.2.3.4"}, + {"type":"L3MODIFICATION","subtype":"IPV4_DST", "ip":"1.2.3.3"}, + {"type":"L3MODIFICATION","subtype":"IPV6_SRC", "ip":"1.2.3.2"}, + {"type":"L3MODIFICATION","subtype":"IPV6_DST", "ip":"1.2.3.1"}, + {"type":"L3MODIFICATION","subtype":"IPV6_FLABEL", "flowLabel":8}, + {"type":"L0MODIFICATION","subtype":"LAMBDA","lambda":7}, + {"type":"L0MODIFICATION","subtype":"OCH","gridType":"DWDM", + "channelSpacing":"CHL_100GHZ","spacingMultiplier":4,"slotGranularity":8}, + {"type":"L4MODIFICATION","subtype":"TCP_DST","tcpPort":40001}, + {"type":"L4MODIFICATION","subtype":"TCP_SRC","tcpPort":40002}, + {"type":"L4MODIFICATION","subtype":"UDP_DST","udpPort":40003}, + {"type":"L4MODIFICATION","subtype":"UDP_SRC","udpPort":40004} + ], + "deferred":[] + }, + "selector": {"criteria":[{"type":"ETH_TYPE","ethType":2054}]} +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/sigid-flow.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/sigid-flow.json new file mode 100644 index 00000000..49d6b1ce --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/sigid-flow.json @@ -0,0 +1,20 @@ +{ + "priority":1, + "isPermanent":"false", + "timeout":1, + "deviceId":"of:0000000000000001", + "selector": + {"criteria": + [ + {"type":"OCH_SIGID", + "ochSignalId": + { + "gridType":"CWDM", + "channelSpacing":"CHL_25GHZ", + "spacingMultiplier":3, + "slotGranularity":4 + } + } + ] + } +} diff --git a/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/simple-flow.json b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/simple-flow.json new file mode 100644 index 00000000..dc241f55 --- /dev/null +++ b/framework/src/onos/core/common/src/test/resources/org/onosproject/codec/impl/simple-flow.json @@ -0,0 +1,12 @@ +{ + "priority":1, + "isPermanent":"false", + "timeout":1, + "deviceId":"of:0000000000000001", + "treatment": + {"instructions": + [{"type":"OUTPUT","port":-3}],"deferred":[]}, + "selector": + {"criteria": + [{"type":"ETH_TYPE","ethType":2054}]} +} |