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:
name -- network device name
bridge -- bridg for the port
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
network_type -- need to be "ethernet" by default
model -- available models in libvirt
...
...
@@ -185,11 +187,15 @@ class VMNetwork:
script_exec
=
'/bin/true'
comment
=
None
vlan
=
0
ipv4
=
None
ipv6
=
None
def
__init__
(
self
,
name
,
bridge
,
mac
,
ipv4
=
None
,
ipv6
=
None
,
network_type
=
'ethernet'
,
model
=
'virtio'
,
QoS
=
None
,
...
...
@@ -198,6 +204,8 @@ class VMNetwork:
self
.
bridge
=
bridge
self
.
network_type
=
network_type
self
.
mac
=
mac
self
.
ipv4
=
ipv4
self
.
ipv6
=
ipv6
self
.
model
=
model
self
.
QoS
=
QoS
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