ironic/ironic/tests/unit/api
Vasyl Saienko c62e1bee29 Expose node's network_interface field in API
This patch exposes the node's network_interface field in the REST API.
It also adds restrictions on the node states in which network
interface change is possible and whether the requested network
interface is enabled.

As a temporary solution until the driver composition work is completed,
we have taken an approach that requires all API and Conductor nodes to
have the same setting for enabled_network_interfaces. There are inline
notes in the code indicating where we will address this in the future.

Partial-bug: #1526403
Co-Authored-By: Om Kumar <om.kumar@hp.com>
Co-Authored-By: Vasyl Saienko <vsaienko@mirantis.com>
Co-Authored-By: Sivaramakrishna Garimella <sivaramakrishna.garimella@hp.com>
Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>
Co-Authored-By: Zhenguo Niu <Niu.ZGlinux@gmail.com>
Change-Id: I67495196c3334f51ed034f4ca6e32a3e01a58f15
2016-07-15 00:08:01 +00:00
..
v1 Expose node's network_interface field in API 2016-07-15 00:08:01 +00:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
base.py Follow up for: Prepare for functional testing patch 2015-09-29 10:13:40 -07:00
test_acl.py Removes the use of mutables as default args 2016-06-19 10:27:48 -07:00
test_base.py Use assertEqual/Greater/Less/IsNone 2016-03-01 11:54:52 +01:00
test_hooks.py Append 'Openstack-Request-Id' header to the response 2016-03-22 10:38:39 -07:00
test_middleware.py Replace HTTP 'magic numbers' with constants 2015-12-06 08:25:45 -08:00
test_root.py Remove unnecessary calls to dict.keys() 2016-06-27 09:23:02 -04:00
utils.py Add multitenancy-related fields to port API object 2016-07-13 13:39:56 +03:00