summaryrefslogtreecommitdiffstats
path: root/snaps/domain/vm_inst.py
diff options
context:
space:
mode:
Diffstat (limited to 'snaps/domain/vm_inst.py')
-rw-r--r--snaps/domain/vm_inst.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/snaps/domain/vm_inst.py b/snaps/domain/vm_inst.py
index 0e12d14..ae01cf0 100644
--- a/snaps/domain/vm_inst.py
+++ b/snaps/domain/vm_inst.py
@@ -19,14 +19,17 @@ class VmInst:
SNAPS domain object for Images. Should contain attributes that
are shared amongst cloud providers
"""
- def __init__(self, name, inst_id):
+ def __init__(self, name, inst_id, networks):
"""
Constructor
:param name: the image's name
:param inst_id: the instance's id
+ :param networks: dict of networks where the key is the subnet name and
+ value is a list of associated IPs
"""
self.name = name
self.id = inst_id
+ self.networks = networks
class FloatingIp: