xcp.net.mac
Mac address object for manipulation and comparison.
-
class xcp.net.mac.MAC(addr)[source]
Bases: object
Mac address object for manipulation and comparison
-
as_string(sep='.', upper=False)[source]
Get a string representation of this MAC address
-
is_global()[source]
is this a globally administered address?
-
is_local()[source]
is this a locally administered address?
-
is_multicast()[source]
is this a multicast address?
-
is_unicast()[source]
is this a unicast address?
-
classmethod is_valid(addr)[source]
Static method to assertain whether addr is a recognised MAC address or
not