diff options
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/fake.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/nova/virt/fake.py b/nova/virt/fake.py index 6134019b2..0996988cd 100644 --- a/nova/virt/fake.py +++ b/nova/virt/fake.py @@ -184,7 +184,22 @@ class FakeDriver(driver.ComputeDriver): 'cpu_time': 0} def get_diagnostics(self, instance_name): - return 'FAKE_DIAGNOSTICS' + return {'cpu0_time': 17300000000, + 'memory': 524288, + 'vda_errors': -1, + 'vda_read': 262144, + 'vda_read_req': 112, + 'vda_write': 5778432, + 'vda_write_req': 488, + 'vnet1_rx': 2070139, + 'vnet1_rx_drop': 0, + 'vnet1_rx_errors': 0, + 'vnet1_rx_packets': 26701, + 'vnet1_tx': 140208, + 'vnet1_tx_drop': 0, + 'vnet1_tx_errors': 0, + 'vnet1_tx_packets': 662, + } def get_all_bw_counters(self, instances): """Return bandwidth usage counters for each interface on each |
