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
Commit
fb80d4bc
authored
Jul 29, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added managed property
parent
88688f4b
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 @
fb80d4bc
...
...
@@ -174,6 +174,7 @@ class VMNetwork:
model -- available models in libvirt
QoS -- CIRCLE QoS class?
comment -- Any comment
managed -- Apply managed flow rules like Ip and mac spoofing prevent
script -- Executable network script /bin/true by default
'''
# Class attributes
...
...
@@ -188,6 +189,7 @@ class VMNetwork:
vlan
=
0
ipv4
=
None
ipv6
=
None
managed
=
False
def
__init__
(
self
,
name
,
...
...
@@ -198,7 +200,8 @@ class VMNetwork:
network_type
=
'ethernet'
,
model
=
'virtio'
,
QoS
=
None
,
vlan
=
0
):
vlan
=
0
,
managed
=
False
):
self
.
name
=
name
self
.
bridge
=
bridge
self
.
network_type
=
network_type
...
...
@@ -208,6 +211,7 @@ class VMNetwork:
self
.
model
=
model
self
.
QoS
=
QoS
self
.
vlan
=
vlan
self
.
managed
=
managed
# 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