blob: 14b6345515bff1164b60e33d9b0e5ddedfde6185 [file] [log] [blame]
Masayoshi Kobayashi57572b12013-03-13 22:27:50 +00001#! /bin/bash
2controller=""
Masayoshi Kobayashib738b212013-04-03 02:26:51 +00003#switches=`ifconfig -a | grep sw |grep -v eth | awk '{print $1}'`
4switches=`sudo ovs-vsctl list-br`
Masayoshi Kobayashi57572b12013-03-13 22:27:50 +00005for s in $switches; do
Masayoshi Kobayashi8afa8822013-04-02 22:20:33 +00006 echo -n "$s : "
Masayoshi Kobayashi57572b12013-03-13 22:27:50 +00007 sudo ovs-ofctl show $s |grep dpid
8done