<commit_before>---
title: SoftLayer CPI
---

This topic describes cloud properties for different resources created by the SoftLayer CPI.

## <a id='azs'></a> AZs

Example:

```yaml
azs:
- name: z1
  cloud_properties:
    Datacenter: { Name: lon02 }
```

---
## <a id='networks'></a> Networks

Example of dynamic network:

```yaml
networks:
- name: default
  type: dynamic
  subnets:
  - {az: az1, dns: [ 10.113.189.78, 8.8.8.8, 10.0.80.11, 10.0.80.12 ]}
  cloud_properties:
    PrimaryNetworkComponent:
       NetworkVlan:
          Id: 524956
    PrimaryBackendNetworkComponent:
       NetworkVlan:
          Id: 524954
```

Currently SoftLayer CPI does not support manual or vip networks.

---
## <a id='resource-pools'></a> Resource Pools / VM Types

Schema for `cloud_properties` section:

* **Domain** [String, required]: Name of the domain. Example: `softlayer.com`.
* **VmNamePrefix** [String, required]: Prefix of the vm name. Example: `bosh-softlayer`.
* **EphemeralDiskSize** [Integer, required]: Ephemeral disk size in gigabyte. Example: `100`.
* **StartCpus** [Integer, required]: Number of CPUs. Example: `4`.
* **MaxMemory** [Integer, required]: Memory in megabytes. Example: `8192`.
* **Datacenter** :
    * **Name** [String, required]: Name of the datacenter. Example: `lon02`.
* **HourlyBillingFlag** [Boolean, optional]: If the vm is hourly billing. Default is `false`. 
* **PrimaryNetworkComponent** :
    * **NetworkVlan** : 
        * **Id** [Integer, required]: Id of the public VLAN. Example: `524956`.
* **PrimaryBackendNetworkComponent** :
    * **NetworkVlan** : 
        * **Id** [Integer, required]: Id of the private VLAN. Example: `524954`.
* **NetworkComponents** :
    * **MaxSpeed** [Integer, optional]: Max speed of the network in Mbps. Default is `100`.

Example:

```yaml
resource_pools:
- name: vms
  network: default
  stemcell:
    url: light-bosh-stemcell-3169-softlayer-esxi-ubuntu-trusty-go_agent
  cloud_properties:
    Domain: softlayer.com
    VmNamePrefix: bosh-softlayer
    EphemeralDiskSize: 100
    StartCpus: 4<commit_msg>Remove vlan from resource_pool cloud_properties<commit_after>---
title: SoftLayer CPI
---

This topic describes cloud properties for different resources created by the SoftLayer CPI.

## <a id='azs'></a> AZs

Example:

```yaml
azs:
- name: z1
  cloud_properties:
    Datacenter: { Name: lon02 }
```

---
## <a id='networks'></a> Networks

Example of dynamic network:

```yaml
networks:
- name: default
  type: dynamic
  subnets:
  - {az: az1, dns: [ 10.113.189.78, 8.8.8.8, 10.0.80.11, 10.0.80.12 ]}
  cloud_properties:
    PrimaryNetworkComponent:
       NetworkVlan:
          Id: 524956
    PrimaryBackendNetworkComponent:
       NetworkVlan:
          Id: 524954
```

Currently SoftLayer CPI does not support manual or vip networks.

---
## <a id='resource-pools'></a> Resource Pools / VM Types

Schema for `cloud_properties` section:

* **Domain** [String, required]: Name of the domain. Example: `softlayer.com`.
* **VmNamePrefix** [String, required]: Prefix of the vm name. Example: `bosh-softlayer`.
* **EphemeralDiskSize** [Integer, required]: Ephemeral disk size in gigabyte. Example: `100`.
* **StartCpus** [Integer, required]: Number of CPUs. Example: `4`.
* **MaxMemory** [Integer, required]: Memory in megabytes. Example: `8192`.
* **Datacenter** :
    * **Name** [String, required]: Name of the datacenter. Example: `lon02`.
* **HourlyBillingFlag** [Boolean, optional]: If the vm is hourly billing. Default is `false`. 

Example:

```yaml
resource_pools:
- name: vms
  network: default
  stemcell:
    url: light-bosh-stemcell-3169-softlayer-esxi-ubuntu-trusty-go_agent
  cloud_properties:
    Domain: softlayer.com
    VmNamePrefix: bosh-softlayer
    EphemeralDiskSize: 100
    StartCpus: 4
{'fraction_non_alphanumeric': 0.14576719576719577, 'fraction_numerical': 0.03677248677248677, 'mean_word_length': 3.761964735516373, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5292886', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1263, 'n_words': 371}