Compute agent can poll tx and rx errors and drops
Allows compute agent to poll for tx and rx errors and dropped packets. Closes-Bug: #1587987 Change-Id: I5f1a48b4f1751c64dde2e09005947f7af1efa505
This commit is contained in:
@@ -179,8 +179,12 @@ class LibvirtInspector(virt_inspector.Inspector):
|
||||
dom_stats = domain.interfaceStats(name)
|
||||
stats = virt_inspector.InterfaceStats(rx_bytes=dom_stats[0],
|
||||
rx_packets=dom_stats[1],
|
||||
rx_drop=dom_stats[2],
|
||||
rx_errors=dom_stats[3],
|
||||
tx_bytes=dom_stats[4],
|
||||
tx_packets=dom_stats[5])
|
||||
tx_packets=dom_stats[5],
|
||||
tx_drop=dom_stats[6],
|
||||
tx_errors=dom_stats[7])
|
||||
yield (interface, stats)
|
||||
|
||||
def inspect_disks(self, instance):
|
||||
|
||||
Reference in New Issue
Block a user