Gitiles
Code Review
Sign In
gerrit.onosproject.org
/
spring-open
/
83ce8c41df7bc04c959bbc0565bb7dfebb1ec92d
/
.
/
old-scripts
/
scripts
/
listports.sh
blob: 792ea37467aff46d9a40b8a336f705558502054b [
file
] [
log
] [
blame
]
#! /bin/bash
controller
=
`hostname`
switches
=
`sudo ovs-vsctl list-br`
function
host2ip
(){
ip
=
`grep $1 /etc/hosts |grep -v "ip6"| awk '{print $1}'`
echo $ip
}
for
s
in
$switches
;
do
sudo ovs
-
vsctl
--
pretty list
-
ports $s
done