diff options
author | 2017-07-06 11:58:52 -0600 | |
---|---|---|
committer | 2017-07-06 11:58:52 -0600 | |
commit | 5616cafabcc5f8ab75ee6fcaefa87e3fbd126ce9 (patch) | |
tree | feeb024010654ca1889ae8231176fce083e4a41b /snaps/domain/vm_inst.py | |
parent | 815a21216c6df1a33eff7a5521ee0b08f4696822 (diff) |
Added support for using '~' for SSH key location.
While testing changes, fixed problems found with querying for
floating IPs which also required adding network data to the
VMInst domain object.
JIRA: SNAPS-85
Change-Id: I0ecf3a6885ce84fe14c4a6db09269c56dc0ad9fc
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/domain/vm_inst.py')
-rw-r--r-- | snaps/domain/vm_inst.py | 5 |
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: |