ironic/ironic/tests/unit/conductor
Vasyl Saienko cde11611d9 Add network interface to base driver class
This change also introduces two network interfaces:

* flat: Copies current neutron DHCP provider logic to work with
  cleaning ports;
* noop: noop interface.

The default value of the network_interface is None, meaning that the
node will be using the default network interface. The default network
interface is determined the following way:

* if [DEFAULT]default_network_interface configuration option is set
  (the default for it is None), the specified interface becomes the
  default for all nodes;

* if it is not set, 'flat' interface will be used if the deployment
  currently uses 'neutron' DHCP provider, otherwise 'noop' interface
  will be used.

create_cleaning_ports and delete_cleaning_ports methods of the DHCP
providers are still being called in case of out-of-tree DHCP
providers, but this possibility will be removed completely in the
next release. If the DHCP provider logic is rewritten into a custom
network interface, please remove those methods from the provider, so
that network interface is called instead.

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: I0c26582b6b6e9d32650ff3e2b9a3269c3c2d5454
2016-07-12 19:08:07 +03:00
..
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
mgr_utils.py Switch to Futurist library for asynchronous execution and periodic tasks 2016-02-24 15:44:05 +01:00
test__mgr_utils.py Rename utils.py to mgr_utils.py to avoid namespace collision 2015-10-23 06:09:41 -07:00
test_base_manager.py Add network interface to base driver class 2016-07-12 19:08:07 +03:00
test_manager.py Add network interface to base driver class 2016-07-12 19:08:07 +03:00
test_rpcapi.py Introduce new driver call and RPC for heartbeat 2016-06-27 15:26:10 +02:00
test_task_manager.py Adopt Ironic's own context 2016-04-01 14:51:39 +08:00
test_utils.py Replace assertRaisesRegexp with assertRaisesRegex 2016-06-21 11:25:23 +03:00