summaryrefslogtreecommitdiff
path: root/ironic_python_agent/netutils.py
diff options
context:
space:
mode:
authorMoshe Levi <moshele@mellanox.com>2016-11-17 02:11:04 +0200
committerSzymon Borkowski <szymon.borkowski@intel.com>2016-11-22 15:46:12 +0100
commit1bdcd4449f6dc3c39cffcefa8efba243b7c00456 (patch)
tree7da005a297795141feb1859d0bbba4deba2cf8ac /ironic_python_agent/netutils.py
parentf9236682f7bb7048e607bd9235cf14d2088806ff (diff)
downloadironic-python-agent-1bdcd4449f6dc3c39cffcefa8efba243b7c00456.tar.gz
Add a new Hardware Manager for Mellanox NICs
This patch add Mellanox Manager to support Mellanox InfiniBand NICs. It adds client_id to the NetworkInterface for the InfiniBand network interface. The Mellanox Manager provides it own implementation of get_interface_info. The mlnx get_interface_info generate InfiniBand MAC and client-id from the InfiniBand network interface address. Closes-Bug: #1532534 Change-Id: I4e7f7649a1bdeaa3ee99b2748037b0f37fea486c
Diffstat (limited to 'ironic_python_agent/netutils.py')
-rw-r--r--ironic_python_agent/netutils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic_python_agent/netutils.py b/ironic_python_agent/netutils.py
index f1078fb8..55c7a3eb 100644
--- a/ironic_python_agent/netutils.py
+++ b/ironic_python_agent/netutils.py
@@ -30,6 +30,7 @@ LLDP_ETHERTYPE = 0x88cc
IFF_PROMISC = 0x100
SIOCGIFFLAGS = 0x8913
SIOCSIFFLAGS = 0x8914
+INFINIBAND_ADDR_LEN = 59
class ifreq(ctypes.Structure):