summaryrefslogtreecommitdiff
path: root/ironic/drivers/base.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-03-22 13:16:06 +0000
committerGerrit Code Review <review@openstack.org>2021-03-22 13:16:06 +0000
commitacd4b451dc866f4aee48b46f958cc46fd2220d09 (patch)
tree129e16ddbb3305ff31da17901a8336df0358ed86 /ironic/drivers/base.py
parent8251885db551b4ff539e9ebd99f3e436a65308b6 (diff)
parent05df3d7aa4aa7a1fd25a2f2d55726197e1b5f9df (diff)
downloadironic-acd4b451dc866f4aee48b46f958cc46fd2220d09.tar.gz
Merge "Use OOB inspection to fetch MACs for IB inspection"
Diffstat (limited to 'ironic/drivers/base.py')
-rw-r--r--ironic/drivers/base.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ironic/drivers/base.py b/ironic/drivers/base.py
index db655a474..ebeff2de5 100644
--- a/ironic/drivers/base.py
+++ b/ironic/drivers/base.py
@@ -1161,6 +1161,17 @@ class ManagementInterface(BaseInterface):
raise exception.UnsupportedDriverExtension(
driver=task.node.driver, extension='detect_vendor')
+ def get_mac_addresses(self, task):
+ """Get MAC address information for the node.
+
+ :param task: A TaskManager instance containing the node to act on.
+ :raises: UnsupportedDriverExtension
+ :returns: A list of MAC addresses for the node
+
+ """
+ raise exception.UnsupportedDriverExtension(
+ driver=task.node.driver, extension='get_mac_addresses')
+
class InspectInterface(BaseInterface):
"""Interface for inspection-related actions."""