Adding an example L2 flow JSON for REST API.
Change-Id: Ief9e3f7f9fe6b809bfe14c6d223c63acd8476039
diff --git a/tools/test/configs/l2-flow.json b/tools/test/configs/l2-flow.json
new file mode 100644
index 0000000..64bb529
--- /dev/null
+++ b/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