# Adding Devices

* Navigate to Inventory

<figure><img src="https://lh6.googleusercontent.com/zrZOZFqseVvZqpxnSE4q5lUN803t0Et5Pk7RUW6YtFpQ1lkalBcJeUIS-vGs0c0U3XKLZj4VyJmLXQKXMJPFdFFyycXfC8CsamZd-i0O8pH6sUXR0w-7YNgArvBthjhFyN_0IcIoJ5Wxox3oaRTUncqgcVAwLXs6DGTxrwA4_3xC6NaK7hDkQ-MRalzCvg" alt=""><figcaption></figcaption></figure>

* This page gives the control to onboard the devices with two options&#x20;
  * <mark style="color:blue;">**Add/Remove Devices**</mark> using the <mark style="color:blue;">**YAML Editor**</mark>&#x20;
  * Upload the YAML file containing the device list

<figure><img src="https://content.gitbook.com/content/sjMG8ERI8JuFHFkm9MpV/blobs/pk28A7EoFOCCeoT37cU4/Screenshot%202023-02-04%20at%202.28.52%20PM.png" alt=""><figcaption></figcaption></figure>

* Click on <mark style="color:blue;">**Add/Remove Devices**</mark>
* Upload Device Inventory using <mark style="color:blue;">**YAML Editor**</mark>
* Navigate to <mark style="color:blue;">**Inventory >> Devices >> Add/Remove Devices**</mark>
* Use the below format to add devices to the application

```yaml
inventory:
  - switchName: "SN2100-Spine"
    layer: "Spine"
    ipAddress: "10.4.4.61"
    region: "SJC"
    azId: 1
    brickId: 1
    rackId: null
    user: "admin"
    password: "YourPaSsWoRd"
  - switchName: "SN2100-Leaf3"
    layer: "Leaf"
    ipAddress: "10.4.4.62"
    region: "SJC"
    azId: 1
    brickId: 1
    rackId: null
    user: "admin"
    password: "YourPaSsWoRd"

```

* Make sure to use the correct indentation for the YAML files
* Make sure the Switch Name matches to Hostname of the switch

<figure><img src="https://content.gitbook.com/content/sjMG8ERI8JuFHFkm9MpV/blobs/8HF6xkri2Nz6NxRT7etE/Screenshot%202023-02-04%20at%202.30.21%20PM.png" alt=""><figcaption></figcaption></figure>

* Click <mark style="color:blue;">**Save & Apply**</mark>
* ONES Application is now ready to manage the added devices

<figure><img src="https://content.gitbook.com/content/sjMG8ERI8JuFHFkm9MpV/blobs/jvxpDXEpViMffBgWdWYL/Screenshot%202023-02-04%20at%202.34.29%20PM.png" alt=""><figcaption></figcaption></figure>
