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
7f7756b3
authored
Jul 22, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding ipv4 and ipv6 field to network
parent
fc3a4b39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
vm.py
+8
-0
No files found.
vm.py
View file @
7f7756b3
...
@@ -168,6 +168,8 @@ class VMNetwork:
...
@@ -168,6 +168,8 @@ class VMNetwork:
name -- network device name
name -- network device name
bridge -- bridg for the port
bridge -- bridg for the port
mac -- the MAC address of the quest interface
mac -- the MAC address of the quest interface
ipv4 -- the IPv4 address of virtual machine (Flow control)
ipv6 -- the IPv6 address of virtual machine (Flow controlo)
vlan -- Port VLAN configuration
vlan -- Port VLAN configuration
network_type -- need to be "ethernet" by default
network_type -- need to be "ethernet" by default
model -- available models in libvirt
model -- available models in libvirt
...
@@ -185,11 +187,15 @@ class VMNetwork:
...
@@ -185,11 +187,15 @@ class VMNetwork:
script_exec
=
'/bin/true'
script_exec
=
'/bin/true'
comment
=
None
comment
=
None
vlan
=
0
vlan
=
0
ipv4
=
None
ipv6
=
None
def
__init__
(
self
,
def
__init__
(
self
,
name
,
name
,
bridge
,
bridge
,
mac
,
mac
,
ipv4
=
None
,
ipv6
=
None
,
network_type
=
'ethernet'
,
network_type
=
'ethernet'
,
model
=
'virtio'
,
model
=
'virtio'
,
QoS
=
None
,
QoS
=
None
,
...
@@ -198,6 +204,8 @@ class VMNetwork:
...
@@ -198,6 +204,8 @@ class VMNetwork:
self
.
bridge
=
bridge
self
.
bridge
=
bridge
self
.
network_type
=
network_type
self
.
network_type
=
network_type
self
.
mac
=
mac
self
.
mac
=
mac
self
.
ipv4
=
ipv4
self
.
ipv6
=
ipv6
self
.
model
=
model
self
.
model
=
model
self
.
QoS
=
QoS
self
.
QoS
=
QoS
self
.
vlan
=
vlan
self
.
vlan
=
vlan
...
...
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