File Manager

Current Path : /snap/lxd/current/share/openvswitch/scripts/
Upload File :
Current File : //snap/lxd/current/share/openvswitch/scripts/ovs-bugtool-get-port-stats

#! /bin/bash

#Iterate through each port of every bridge and print
#the port statistics

for bridge in `ovs-vsctl -- --real list-br`
do
    echo "${bridge} : "
    echo "  ${bridge} : `ovs-vsctl get interface ${bridge} statistics`"
    for iface in `ovs-vsctl list-ifaces ${bridge}`
    do
        echo "  ${iface} : `ovs-vsctl get interface ${iface} statistics`"
    done
    echo -e "\n"
done

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com