models.bifrost_subnet module

class models.bifrost_subnet.BifrostSubnet(gateway=None, ip_cidr=None, ips=None, netmask_bits=None, netmask_ip4=None)[source]

Bases: object

Implementation of the ‘BifrostSubnet’ model.

Specifies the settings of a Bifrost Subnet.

gateway (string): Specifies the Gateway of the VLAN. It can carry V4

or V6 in case of requests, and carrises V4 in case of response.

ip_cidr (string): Specifies either an IPv6 address or an IPv4 address. ips (list of string): Array of IPs.

Specifies a list of IPs in the VLAN.

netmask_bits (int): Specifies the netmask using bits. netmask_ip4 (string): Specifies the netmask using an IP4 address.

The netmask can only be set using netmaskIp4 if the IP address is an IPv4 address.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary


dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.


object: An instance of this structure class.