X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=snaps%2Fdomain%2Fvm_inst.py;h=c49b03e5fc250222046ef8bc0dbed68c04b5b151;hb=dc6699282623b5cb3e0df80f8687b8e1333e88bd;hp=4c202f5f22ab56e3e1d0581896e9f8746504dd3e;hpb=2f32a84057a7562524cda9f224b13ba0a394d7ce;p=snaps.git diff --git a/snaps/domain/vm_inst.py b/snaps/domain/vm_inst.py index 4c202f5..c49b03e 100644 --- a/snaps/domain/vm_inst.py +++ b/snaps/domain/vm_inst.py @@ -19,7 +19,7 @@ class VmInst: SNAPS domain object for Images. Should contain attributes that are shared amongst cloud providers """ - def __init__(self, name, inst_id, image_id, flavor_id, networks, + def __init__(self, name, inst_id, image_id, flavor_id, ports, keypair_name, sec_grp_names, volume_ids): """ Constructor @@ -27,8 +27,8 @@ class VmInst: :param inst_id: the instance's id :param image_id: the instance's image id :param flavor_id: the ID used to spawn this instance - :param networks: dict of networks where the key is the network name and - value is a list of associated IPs + :param ports: list of SNAPS-OO Port domain objects associated with this + server instance :param keypair_name: the name of the associated keypair :param sec_grp_names: list of security group names :param volume_ids: list of attached volume IDs @@ -37,7 +37,7 @@ class VmInst: self.id = inst_id self.image_id = image_id self.flavor_id = flavor_id - self.networks = networks + self.ports = ports self.keypair_name = keypair_name self.sec_grp_names = sec_grp_names self.volume_ids = volume_ids @@ -47,7 +47,7 @@ class VmInst: self.id == other.id and self.image_id == other.image_id and self.flavor_id == other.flavor_id and - self.networks == other.networks and + self.ports == other.ports and self.keypair_name == other.keypair_name and self.sec_grp_names == other.sec_grp_names and self.volume_ids == other.volume_ids)