logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

packet.link.macaddr - MacAddr module

Author

       Jorge Mora (mora@netapp.com)

NFStest 3.2                                       21 March 2023                                       MACADDR(3)

Bugs

       No known bugs.

Classes

classMacAddr(builtins.str)
       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'

       Methodsdefinedhere:
       ---------------------

       __eq__(self,other)
       Compare two MAC addresses and return True if both are equal.

       __ne__(self,other)
       Compare two MAC addresses and return False if both are equal.

       Staticmethodsdefinedhere:
       ----------------------------

       __new__(cls,mac)
       Create new instance by converting input string into a persistent
       representation of a MAC address.

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.

Name

       packet.link.macaddr - MacAddr module

See Also