Adding Switches using YAML

On the NCP GUI:

  • Navigate to Inventory > Devices > Add Devices > Use YAML

  • Create a YAML file listing all devices using a text editor, then select Upload YAML on the next screen

inventory.yaml
inventory:
  - ipAddress: 121.2.4.101
    layer: Spine
    region: SJC
    azId: 1
    brickId: 1
    user: admin
    password: admin
    type: snmp
    community: public
  - ipAddress: 110.4.7.97
    layer: Spine
    region: SJC
    azId: 1
    brickId: 1
    user: admin
    password: YourPaSsWoRd
    type: snmp
    community: public
  - ipAddress: 120.2.2.95
    layer: Leaf
    region: SJC
    azId: 1
    brickId: 1
    user: admin
    password: YourPaSsWoRd
    type: sonic
    community: public
  • Click on Save & Apply to add the devices

  • Newly added Switches will appear in the inventory section

Last updated

Was this helpful?