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
8315e9dc
authored
Jul 19, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding bridge to VMNetwork
parent
589cdc2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vm.py
+4
-0
No files found.
vm.py
View file @
8315e9dc
...
...
@@ -166,6 +166,7 @@ class VMNetwork:
''' Virtual Machine network representing class
name -- network device name
bridge -- bridg for the port
mac -- the MAC address of the quest interface
vlan -- Port VLAN configuration
network_type -- need to be "ethernet" by default
...
...
@@ -176,6 +177,7 @@ class VMNetwork:
'''
# Class attributes
name
=
None
bridge
=
None
network_type
=
None
mac
=
None
model
=
None
...
...
@@ -186,12 +188,14 @@ class VMNetwork:
def
__init__
(
self
,
name
,
bridge
,
mac
,
network_type
=
'ethernet'
,
model
=
'virtio'
,
QoS
=
None
,
vlan
=
0
):
self
.
name
=
name
self
.
bridge
=
bridge
self
.
network_type
=
network_type
self
.
mac
=
mac
self
.
model
=
model
...
...
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