blob: 63b82b7517f3f4419a03ec96866ac53f3f776f5e [file] [log] [blame]
#! /bin/bash
controller=""
switches=`sudo ovs-vsctl list-br`
dpids=()
for s in $switches; do
i=`sudo ovs-ofctl show $s |grep dpid | awk -F ":" '{print $4}'`
dpids+=($i)
done
((j=0))
for s in $switches; do
sudo ovs-ofctl dump-flows $s |grep cookie| awk -vsw=$s -vdpid=${dpids[$j]} '{printf("%s dpid=%s %s\n",sw,dpid,$0)}'
((j ++ ))
done