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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
aec476c9
authored
Jul 17, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing debug prints
parent
5f3d506d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
vm.py
+0
-7
No files found.
vm.py
View file @
aec476c9
...
@@ -175,10 +175,3 @@ class VMNetwork:
...
@@ -175,10 +175,3 @@ class VMNetwork:
def
dump_xml
(
self
):
def
dump_xml
(
self
):
return
ET
.
tostring
(
self
.
build_xml
(),
encoding
=
'utf8'
,
return
ET
.
tostring
(
self
.
build_xml
(),
encoding
=
'utf8'
,
method
=
'xml'
,
pretty_print
=
True
)
method
=
'xml'
,
pretty_print
=
True
)
a
=
VMNetwork
(
name
=
"vm-77"
,
mac
=
"02:00:00:00:00:00"
)
b
=
VMDisk
(
name
=
"asd"
,
source
=
'/asdasd/adasds/asd'
)
vminst
=
VMInstance
(
name
=
"Thisthename"
,
vcpu
=
"1"
,
memory_max
=
"2048"
,
disk_list
=
[
a
],
network_list
=
[
b
])
# print a.dump_xml()
# print b.dump_xml()
print
vminst
.
dump_xml
()
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