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
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:
...
@@ -174,6 +174,7 @@ class VMNetwork:
model -- available models in libvirt
model -- available models in libvirt
QoS -- CIRCLE QoS class?
QoS -- CIRCLE QoS class?
comment -- Any comment
comment -- Any comment
managed -- Apply managed flow rules like Ip and mac spoofing prevent
script -- Executable network script /bin/true by default
script -- Executable network script /bin/true by default
'''
'''
# Class attributes
# Class attributes
...
@@ -188,6 +189,7 @@ class VMNetwork:
...
@@ -188,6 +189,7 @@ class VMNetwork:
vlan
=
0
vlan
=
0
ipv4
=
None
ipv4
=
None
ipv6
=
None
ipv6
=
None
managed
=
False
def
__init__
(
self
,
def
__init__
(
self
,
name
,
name
,
...
@@ -198,7 +200,8 @@ class VMNetwork:
...
@@ -198,7 +200,8 @@ class VMNetwork:
network_type
=
'ethernet'
,
network_type
=
'ethernet'
,
model
=
'virtio'
,
model
=
'virtio'
,
QoS
=
None
,
QoS
=
None
,
vlan
=
0
):
vlan
=
0
,
managed
=
False
):
self
.
name
=
name
self
.
name
=
name
self
.
bridge
=
bridge
self
.
bridge
=
bridge
self
.
network_type
=
network_type
self
.
network_type
=
network_type
...
@@ -208,6 +211,7 @@ class VMNetwork:
...
@@ -208,6 +211,7 @@ class VMNetwork:
self
.
model
=
model
self
.
model
=
model
self
.
QoS
=
QoS
self
.
QoS
=
QoS
self
.
vlan
=
vlan
self
.
vlan
=
vlan
self
.
managed
=
managed
# XML dump
# XML dump
def
build_xml
(
self
):
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