Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
55f64d9c
authored
Jul 15, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flake8 warnings
parent
c54d5eef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
netdriver.py
+1
-1
tests/test.py
+9
-9
No files found.
netdriver.py
View file @
55f64d9c
...
...
@@ -248,7 +248,7 @@ def port_delete(network):
try
:
clear_port_rules
(
network
)
except
:
pass
# Missing port (deleted already)
pass
# Missing port (deleted already)
if
not
native_ovs
:
# Delete port
...
...
tests/test.py
View file @
55f64d9c
...
...
@@ -2,7 +2,7 @@
import
vm
import
vmdriver
#import logging
#
import logging
from
nose.tools
import
raises
graphics
=
{
'type'
:
'vnc'
,
'listen'
:
...
...
@@ -34,18 +34,18 @@ asd = vm.VMInstance.deserialize(vmdict)
print
asd
.
dump_xml
()
# Enable logging
#logging.basicConfig(filename='example.log', level=logging.DEBUG)
#print testvm.dump_xml()
#vm_driver = vmdriver.VMDriver()
#vm_driver.connect()
#vm_driver.vm_define(testvm)
#print '%(name)s defined.' % {'name': testvm.name}
#for i in vm_driver.list_domains():
#
logging.basicConfig(filename='example.log', level=logging.DEBUG)
#
print testvm.dump_xml()
#
vm_driver = vmdriver.VMDriver()
#
vm_driver.connect()
#
vm_driver.vm_define(testvm)
#
print '%(name)s defined.' % {'name': testvm.name}
#
for i in vm_driver.list_domains():
# print i
# #vm_driver.vm_start(i)
# vm_driver.vm_undefine(i)
# print '%(name)s undefined.' % {'name': i}
#vm_driver.disconnect()
#
vm_driver.disconnect()
@raises
(
AttributeError
)
...
...
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