File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,6 +110,20 @@ def network_dump():
110110 _dump_cmd ("ip route" )
111111
112112
113+ def ovs_dump ():
114+ _header ("Open vSwitch Dump" )
115+
116+ # NOTE(ihrachys): worlddump is used outside of devstack context (f.e. in
117+ # grenade), so there is no single place to determine the bridge names from.
118+ # Hardcode for now.
119+ bridges = ('br-int' , 'br-tun' , 'br-ex' )
120+ _dump_cmd ("sudo ovs-vsctl show" )
121+ for bridge in bridges :
122+ _dump_cmd ("sudo ovs-ofctl show %s" % bridge )
123+ for bridge in bridges :
124+ _dump_cmd ("sudo ovs-ofctl dump-flows %s" % bridge )
125+
126+
113127def process_list ():
114128 _header ("Process Listing" )
115129 _dump_cmd ("ps axo "
@@ -147,6 +161,7 @@ def main():
147161 disk_space ()
148162 process_list ()
149163 network_dump ()
164+ ovs_dump ()
150165 iptables_dump ()
151166 ebtables_dump ()
152167 compute_consoles ()
You can’t perform that action at this time.
0 commit comments