MACAddress class - Platform - BlueCat Gateway - 21.11.2

Gateway Administration Guide

Locale
English
Product name
BlueCat Gateway
Version
21.11.2

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.

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).