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
e100e795
authored
Jul 17, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding vlan property
parent
fc278800
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
vm.py
+5
-1
No files found.
vm.py
View file @
e100e795
...
...
@@ -167,6 +167,7 @@ class VMNetwork:
''' Virtual Machine network representing class
name -- network device name
mac -- the MAC address of the quest interface
vlan -- Port VLAN configuration
network_type -- need to be "ethernet" by default
model -- available models in libvirt
QoS -- CIRCLE QoS class?
...
...
@@ -181,18 +182,21 @@ class VMNetwork:
QoS
=
None
script_exec
=
'/bin/true'
comment
=
None
vlan
=
0
def
__init__
(
self
,
name
,
mac
,
network_type
=
'ethernet'
,
model
=
'virtio'
,
QoS
=
None
):
QoS
=
None
,
vlan
=
0
):
self
.
name
=
name
self
.
network_type
=
network_type
self
.
mac
=
mac
self
.
model
=
model
self
.
QoS
=
QoS
self
.
vlan
=
vlan
# XML dump
def
build_xml
(
self
):
...
...
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