Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ea4f921b
authored
Aug 13, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding network information
parent
588e35ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
vmdriver.py
+20
-0
No files found.
vmdriver.py
View file @
ea4f921b
...
@@ -213,6 +213,26 @@ def domain_info(name):
...
@@ -213,6 +213,26 @@ def domain_info(name):
@req_connection
@req_connection
def
network_info
(
name
,
network
):
'''
rx_bytes
rx_packets
rx_errs
rx_drop
tx_bytes
tx_packets
tx_errs
tx_drop
'''
keys
=
[
'rx_bytes'
,
'rx_packets'
,
'rx_errs'
,
'rx_drop'
,
'tx_bytes'
,
'tx_packets'
,
'tx_errs'
,
'tx_drop'
]
dom
=
lookupByName
(
name
)
values
=
dom
.
interfaceStats
(
network
)
info
=
dict
(
zip
(
keys
,
values
))
return
info
@req_connection
def
send_key
(
name
,
key_code
):
def
send_key
(
name
,
key_code
):
''' Sending linux key_code to the name vm
''' Sending linux key_code to the name vm
key_code can be optained from linux_keys.py
key_code can be optained from linux_keys.py
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment