Committed by
Gerrit Code Review
Adding an example L2 flow JSON for REST API.
Change-Id: Ief9e3f7f9fe6b809bfe14c6d223c63acd8476039
Showing
1 changed file
with
28 additions
and
0 deletions
tools/test/configs/l2-flow.json
0 → 100644
| 1 | +{ | ||
| 2 | + "isPermanent": true, | ||
| 3 | + "priority": 100, | ||
| 4 | + "selector": { | ||
| 5 | + "criteria": [ | ||
| 6 | + { | ||
| 7 | + "port": 2, | ||
| 8 | + "type": "IN_PORT" | ||
| 9 | + }, | ||
| 10 | + { | ||
| 11 | + "mac": "00:00:00:00:11:22", | ||
| 12 | + "type": "ETH_SRC" | ||
| 13 | + }, | ||
| 14 | + { | ||
| 15 | + "mac": "00:00:00:00:33:44", | ||
| 16 | + "type": "ETH_DST" | ||
| 17 | + } | ||
| 18 | + ] | ||
| 19 | + }, | ||
| 20 | + "treatment": { | ||
| 21 | + "instructions": [ | ||
| 22 | + { | ||
| 23 | + "port": 1, | ||
| 24 | + "type": "OUTPUT" | ||
| 25 | + } | ||
| 26 | + ] | ||
| 27 | + } | ||
| 28 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment