take out nic_rx_delta and nic_rx_delta as they were taken out from the zcc

Change-Id: I6778d0b8fa3c9d74f00ab35e4363c217479999ac
This commit is contained in:
DCC 2020-12-16 10:42:29 +08:00 committed by Dong Ma
parent 2679372834
commit ec8cecac00
2 changed files with 12 additions and 6 deletions

View File

@ -69,12 +69,14 @@ class ZVMInspector(virt_inspector.Inspector):
parameters=None,
rx_bytes=nic['nic_rx'],
rx_packets=nic['nic_fr_rx'],
rx_bytes_delta=nic['nic_rx_delta'],
# rx_bytes_delta was taken out from zcc
rx_bytes_delta=None,
rx_errors=nic['nic_fr_rx_err'],
rx_drop=None,
tx_bytes=nic['nic_tx'],
tx_packets=nic['nic_fr_tx'],
tx_bytes_delta=nic['nic_tx_delta'],
# tx_bytes_delta was taken out from zcc
tx_bytes_delta=None,
tx_errors=nic['nic_fr_tx_err'],
tx_drop=None
)

View File

@ -47,9 +47,11 @@ class TestZVMInspector(unittest.TestCase):
'nic_fr_rx': 99999,
'nic_fr_tx': 99999,
'nic_rx': 9999999,
'nic_rx_delta': 9999999,
# attribute was taken out from zcc
# 'nic_rx_delta': 9999999,
'nic_tx': 9999999,
'nic_tx_delta': 9999999,
# attribute was taken out from zcc
# 'nic_tx_delta': 9999999,
'nic_fr_rx_dsc': 0,
'nic_fr_tx_dsc': 0,
'nic_fr_rx_err': 0,
@ -59,9 +61,11 @@ class TestZVMInspector(unittest.TestCase):
'nic_fr_rx': 88888,
'nic_fr_tx': 88888,
'nic_rx': 8888888,
'nic_rx_delta': 8888888,
# attribute was taken out from zcc
# 'nic_rx_delta': 8888888,
'nic_tx': 8888888,
'nic_tx_delta': 8888888,
# attribute was taken out from zcc
# 'nic_tx_delta': 8888888,
'nic_fr_rx_dsc': 0,
'nic_fr_tx_dsc': 0,
'nic_fr_rx_err': 0,