models.cluster_config_proto_subnet module¶
-
class
models.cluster_config_proto_subnet.
ClusterConfigProtoSubnet
(component=None, description=None, gateway=None, id=None, ip=None, netmask_bits=None, netmask_ip_4=None, nfs_access=None, nfs_all_squash=None, nfs_root_squash=None, smb_access=None)[source]¶ Bases:
object
Implementation of the ‘ClusterConfigProto_Subnet’ model.
TODO: type model description here.
- Attributes:
component (int): The component that has claimed this subnet. description (string): Description of the subnet. gateway (string): Gateway for the subnet. id (int): ID for this subnet. ip (string): ip is subnet IP address given either in v4 or v6. Netmask
is specified by giving CIDR length in netmask_bits for ipv6. For IPv4 addresses, netmask_ip4 field is set in dotted decimal.
netmask_bits (int): TODO: type description here. netmask_ip_4 (string): TODO: type description here. nfs_access (int): Whether clients from this subnet can mount using NFS
protocol.
- nfs_all_squash (bool): Whether all clients from this subnet can map
view with view_all_squash_uid/view_all_squash_gid configured in the view.
- nfs_root_squash (bool): Whether clients from this subnet can mount as
root on NFS.
- smb_access (int): Whether clients from this subnet can mount using SMB
protocol.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
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.
- Returns:
object: An instance of this structure class.