| echo usage: create-forward-objective.sh onos device src-mac dst-mac src-port dst-port |
| curl -u onos:rocks -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{ |
| \"isPermanent\": \"false\", |
| {\"type\": \"ETH_TYPE\", \"ethType\": 2048}, |
| {\"type\": \"IN_PORT\", \"port\": \"$srcPort\"}, |
| {\"type\": \"ETH_DST\", \"mac\": \"$dstMac\"}, |
| {\"type\": \"ETH_SRC\", \"mac\": \"$srcMac\"} |
| {\"type\":\"OUTPUT\",\"port\":$dstPort} |
| }" http://${onos}:8181/onos/v1/flowobjectives/$device/forward |