MACAddress class - Platform - BlueCat Gateway - 24.1

Gateway Administration Guide

Locale
English
Product name
BlueCat Gateway
Version
24.1

Click a link to jump to the indicated section.

class bluecat.mac_address.MACAddress(api, api_entity)

Bases: bluecat.entity.Entity

MAC Address

clear_mac_pool()

Removes a MAC address from the MAC pool to which it was assigned (if any).

get_address()

Get the address as a string.

staticmethod mac_to_int(mac)

convert mac string to integer

Parameters Description
mac

mac address in string format

Returns: integer value of mac address

Example:

mac_to_int('00-00-00-00-00-00-01')

set_mac_pool(mac_pool=None)

Assigns MAC address to a given MAC pool. If a MAC pool is not given, the MAC address will be removed from the assigned MAC pool (if any).

Parameters Description
mac_pool

MAC pool object to which a MAC address will been assigned (if empty, MAC address will be removed from assigned MAC pool).