<s> from django . db import models <EOL> CLUSTER_TYPE_UCSM_MANAGED = '<STR_LIT>' <EOL> CLUSTER_TYPE_STANDALONE_C = '<STR_LIT>' <EOL> CLUSTER_TYPE_CHOICES = ( <EOL> ( CLUSTER_TYPE_UCSM_MANAGED , '<STR_LIT>' ) , <EOL> ( CLUSTER_TYPE_STANDALONE_C , '<STR_LIT>' ) <EOL> ) <EOL> OS_CLUSTER_TYPE_ALL_IN_ONE = '<STR_LIT:all>' <EOL> OS_CLUSTER_TYPE_CHOICES = ( <EOL> ( OS_CLUSTER_TYPE_ALL_IN_ONE , '<STR_LIT>' ) , <EOL> ) <EOL> OS_TYPE_UBUNTU = '<STR_LIT>' <EOL> OS_TYPE_CHOICES = ( <EOL> ( OS_TYPE_UBUNTU , '<STR_LIT>' ) , <EOL> ) <EOL> class OpenstackSettings ( models . Model ) : <EOL> cluster_name = models . CharField ( max_length = <NUM_LIT:100> , blank = True ) <EOL> cluster_type = models . CharField ( max_length = <NUM_LIT:20> , choices = CLUSTER_TYPE_CHOICES , blank = True , default = CLUSTER_TYPE_UCSM_MANAGED ) <EOL> ucsm_hostname = models . CharField ( verbose_name = '<STR_LIT>' , max_length = <NUM_LIT:100> , blank = True ) <EOL> username = models . CharField ( max_length = <NUM_LIT:100> , blank = True ) <EOL> password = models . CharField ( max_length = <NUM_LIT:100> , blank = True ) <EOL> os_cluster_type = models . CharField ( max_length = <NUM_LIT:20> , choices = OS_CLUSTER_TYPE_CHOICES , blank = True , default = OS_CLUSTER_TYPE_ALL_IN_ONE ) <EOL> os_type = models . CharField ( max_length = <NUM_LIT:20> , choices = OS_TYPE_CHOICES , blank = True , default = OS_TYPE_UBUNTU ) <EOL> mgmt_vlan = models . CharField ( max_length = <NUM_LIT:30> , blank = True , default = '<STR_LIT>' ) <EOL> pxe_vlan = models . CharField ( max_length = <NUM_LIT:30> , blank = True , default = '<STR_LIT>' ) <EOL> iscsi_vlan = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> storage_vlan = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> public_provider_vlan = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> private_vlan = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> tenants_vlan = models . CharField ( max_length = <NUM_LIT:30> , blank = True , default = '<STR_LIT>' ) <EOL> mgmt_subnet = models . CharField ( max_length = <NUM_LIT:30> , blank = True , default = '<STR_LIT>' ) <EOL> pxe_subnet = models . CharField ( max_length = <NUM_LIT:30> , blank = True , default = '<STR_LIT>' ) <EOL> iscsi_subnet = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> storage_subnet = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> public_provider_subnet = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> private_subnet = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> tenants_subnet = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> mac_pool = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> mac_pool_size = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> kvm_ip_pool = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> kvm_ip_pool_size = models . CharField ( max_length = <NUM_LIT:30> , blank = True ) <EOL> default_gateway = models . CharField ( max_length = <NUM_LIT:50> , blank = True ) <EOL> subnet_mask = models . CharField ( max_length = <NUM_LIT:50> , blank = True ) <EOL> dns = models . CharField ( max_length = <NUM_LIT:50> , blank = True ) <EOL> hostname_prefix_compute_nodes = models . CharField ( verbose_name = '<STR_LIT>' , max_length = <NUM_LIT:50> , blank = True ) <EOL> hostname_prefix_swift_nodes = models . CharField ( verbose_name = '<STR_LIT>' , max_length = <NUM_LIT:50> , blank = True ) <EOL> class NodeSettings ( models . Model ) : <EOL> node_name = models . CharField ( max_length = <NUM_LIT:200> , blank = True ) <EOL> node_number = models . IntegerField ( ) <EOL> chassis_number = models . IntegerField ( ) <EOL> blade_number = models . IntegerField ( ) <EOL> aio = models . BooleanField ( ) <EOL> compute = models . BooleanField ( ) <EOL> network = models . BooleanField ( ) <EOL> swift = models . BooleanField ( ) <EOL> cinder = models . BooleanField ( ) <EOL> class Meta : <EOL> ordering = [ '<STR_LIT>' ] </s>
