Refactored VmInst domain class for Ports. 17/49217/1
authorspisarski <s.pisarski@cablelabs.com>
Mon, 18 Dec 2017 17:02:02 +0000 (10:02 -0700)
committerspisarski <s.pisarski@cablelabs.com>
Mon, 18 Dec 2017 17:02:02 +0000 (10:02 -0700)
commitdc6699282623b5cb3e0df80f8687b8e1333e88bd
tree241209570229ca6f8d93b34b4fe2c908c43f56aa
parent2f32a84057a7562524cda9f224b13ba0a394d7ce
Refactored VmInst domain class for Ports.

Removed network dict and replaced with a list of Port domain
objects. The old network member was directly copied into the
VmInst object from neutron meaning that Neutron implementation
details were leaking through. This refactor not only makes
VmInst objects easier to use, it also ensures that future
Neutron API changes will not break the library.

JIRA: SNAPS-251

Change-Id: I3e5e811e433bf7670ecd80405186ac2ac0739def
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
12 files changed:
snaps/domain/test/vm_inst_tests.py
snaps/domain/vm_inst.py
snaps/openstack/create_instance.py
snaps/openstack/create_stack.py
snaps/openstack/tests/create_instance_tests.py
snaps/openstack/tests/create_stack_tests.py
snaps/openstack/utils/heat_utils.py
snaps/openstack/utils/nova_utils.py
snaps/openstack/utils/settings_utils.py
snaps/openstack/utils/tests/heat_utils_tests.py
snaps/openstack/utils/tests/nova_utils_tests.py
snaps/openstack/utils/tests/settings_utils_tests.py