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:
Prudhvi Rao Shedimbi
2016-09-07 21:59:06 +00:00
parent f8c8073b23
commit 7794efcec6
6 changed files with 166 additions and 8 deletions

View File

@@ -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):