summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorVasyl Saienko <vsaienko@mirantis.com>2016-05-17 13:59:39 +0300
committerVladyslav Drok <vdrok@mirantis.com>2016-07-12 19:08:07 +0300
commitcde11611d93946a1c79e406dc429aa5e742da729 (patch)
tree9eb33e34012373f15f5076c0562c7bc05fde79a4 /setup.cfg
parent1825267b3a47ea9f82008a40dd90f0f4946bfd52 (diff)
downloadironic-cde11611d93946a1c79e406dc429aa5e742da729.tar.gz
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
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index d7e5196aa..4d1f319fd 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -87,6 +87,10 @@ ironic.drivers =
pxe_iscsi_cimc = ironic.drivers.pxe:PXEAndCIMCDriver
pxe_agent_cimc = ironic.drivers.agent:AgentAndCIMCDriver
+ironic.hardware.interfaces.network =
+ flat = ironic.drivers.modules.network.flat:FlatNetwork
+ noop = ironic.drivers.modules.network.noop:NoopNetwork
+
ironic.database.migration_backend =
sqlalchemy = ironic.db.sqlalchemy.migration