IP6Network class - Platform - BlueCat Gateway - 19.5.1

Gateway Administration Guide

prodname
BlueCat Gateway
version_custom
19.5.1

IPv6 network instances. Networks are the leaves underneath blocks that contain IP addresses.

class ip6_network.IP6Network(api, api_entity)

Bases: bluecat.configuration.IP6SpaceConfigurationBlockNet

Instantiate an IPv6 network.

Parameters Description
api API instance used by the entity to communicate with BAM.
api_entity The entity returned by the BAM API.

add_address(address, address_type, name, properties='')

Add an IPv6 address to the network.

Parameter Description
address Address argument, changes depending on provided address type.
address_type Type of address passed in, can be “macAddress”, “IP6Address”, “InterfaceID.”
name Name of the address.
properties Adds object properties.

Returns: An IPv6 address object of the newly created address.

get_addresses()

Get a list of all addresses contained within the network. :return: Generator containing all child addresses.