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
a7537840
authored
May 11, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix VMNetwork.build_xml()
parent
826959cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
vm.py
+1
-1
No files found.
vm.py
View file @
a7537840
...
@@ -275,7 +275,7 @@ class VMNetwork:
...
@@ -275,7 +275,7 @@ class VMNetwork:
xml_top
=
ET
.
Element
(
'interface'
,
attrib
=
{
'type'
:
self
.
network_type
})
xml_top
=
ET
.
Element
(
'interface'
,
attrib
=
{
'type'
:
self
.
network_type
})
if
self
.
vlan
>
0
and
self
.
network_type
==
"bridge"
:
if
self
.
vlan
>
0
and
self
.
network_type
==
"bridge"
:
xml_vlan
=
ET
.
SubElement
(
xml_top
,
'vlan'
)
xml_vlan
=
ET
.
SubElement
(
xml_top
,
'vlan'
)
ET
.
SubElement
(
xml_vlan
,
'tag'
,
attrib
=
{
'id'
:
s
elf
.
vlan
})
ET
.
SubElement
(
xml_vlan
,
'tag'
,
attrib
=
{
'id'
:
s
tr
(
self
.
vlan
)
})
if
self
.
network_type
==
"bridge"
:
if
self
.
network_type
==
"bridge"
:
ET
.
SubElement
(
xml_top
,
'source'
,
attrib
=
{
'bridge'
:
self
.
bridge
})
ET
.
SubElement
(
xml_top
,
'source'
,
attrib
=
{
'bridge'
:
self
.
bridge
})
if
self
.
network_type
==
"ethernet"
:
if
self
.
network_type
==
"ethernet"
:
...
...
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