.\" DO NOT MODIFY THIS FILE! It was generated by setup.py 1.2. .TH MACADDR 3 "21 March 2023" "NFStest 3.2" "macaddr 1.0.1" .SH NAME packet.link.macaddr - MacAddr module .SH DESCRIPTION Create an object to represent a MAC address. A MAC address is given either by a series of hexadecimal numbers or using the ":" notation. It provides a mechanism for comparing this object with a regular string. .SH CLASSES .SS class MacAddr(builtins.str) .nf MacAddr address object Usage: from packet.link.macaddr import MacAddr mac = MacAddr('E4CE8F589FF4') The following expressions are equivalent: mac == 'E4CE8F589FF4' mac == 'e4ce8f589ff4' mac == 'e4:ce:8f:58:9f:f4' .P .B Methods defined here: --------------------- .P .B __eq__(self, other) Compare two MAC addresses and return True if both are equal. .P .B __ne__(self, other) Compare two MAC addresses and return False if both are equal. .P .B Static methods defined here: ---------------------------- .P .B __new__(cls, mac) Create new instance by converting input string into a persistent representation of a MAC address. .fi .SH BUGS No known bugs. .SH AUTHOR Jorge Mora (mora@netapp.com)