Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

You can send as many flows as required with different flow ids and priority.

This bash script might be useful; I am pushing 1000 flows from Controller to the bridge.

!/bin/bash

for rank in $(seq 1 1000); do

curl -X PUT  -H "Content-Type:application/json" -H "Accept:application/json" --user admin:admin http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/flow-node-inventory:table/10/flow/$rank --data '{"flow": [{"id": "'"$rank"'", "match": { "ethernet-match": { "ethernet-type": { "type": "2048" } },"ip-match": { "ip-protocol": "6", "ip-proto": "ipv4" }, "tcp-source-port": "'"$rank"'"},"instructions": {"instruction": [{"order": "0","apply-actions": {"action": [{"order": "0","drop-action": {}}]}}]},"flow-name": "FT10","priority": "'"$rank"'","table_id": "10"}]}';

done

Hope this helps.

Thanks, Swathi