INNER CODE UNIT · Python
__init__
netaddr/netaddr · netaddr/eui/__init__.py:48
def __init__(self, oui):
"""
Constructor
:param oui: an OUI string ``XX-XX-XX`` or an unsigned integer. \
Also accepts and parses full MAC/EUI-48 address strings (but not \
MAC/EUI-48 integers)!
"""
super(OUI, self).__init__()
# Lazy loading of IEEE data structures.
from netaddr.eui import ieee
self.records = []
if isinstance(oui, str):
# TODO: Improve string parsing here.
# TODO: Accept full MAC/EUI-48 addresses as well as XX-XX-XX