From 5616cafabcc5f8ab75ee6fcaefa87e3fbd126ce9 Mon Sep 17 00:00:00 2001 From: spisarski Date: Thu, 6 Jul 2017 11:58:52 -0600 Subject: 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 --- snaps/domain/vm_inst.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'snaps/domain/vm_inst.py') 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: -- cgit 1.2.3-korg