Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 1.59 KB

atd-setup.md

File metadata and controls

80 lines (52 loc) · 1.59 KB

TOI Lab preparation using Arista Test Drive

Connect to ATD Jump box using web interface. For more information ask to your local SE.

Clone the Git repo

# Clone the Git repo on the ATD jumphost
$ git clone https://github.com/arista-netdevops-community/ansible-cvp-avd-toi.git

Move to repository folder
$ cd ansible-cvp-avd-toi

Install Virtual Environment

Run TOI in a python's virtual environment:

# Upgrade pip if needed
$ /usr/local/bin/python -m pip install --upgrade pip

# Install virtualenv if not part of your system
$ python -m pip install virtualenv

# Add the path
$ export PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/home/arista/.local/bin

# Verify path
$ echo $PATH

# Create a virtual env named .venv
$ virtualenv -p $(which python3) .venv

# Activate virtualenv
$ source .venv/bin/activate

Install Python requirements

$ pip install --requirement requirements.txt

# Check what has been installed
$ pip list

# Install sshpass
$ sudo apt-get install -y sshpass

Install the Arista CVP and AVD collections

# Create a folder for the Ansible collections
$ cd labs
$ mkdir collections
$ cd collections

# Install the Arista CVP collection
$ git clone https://github.com/aristanetworks/ansible-cvp.git

# Install the Arista AVD collection
$ git clone https://github.com/aristanetworks/ansible-avd.git

Configure CloudVision IP Address

Inventory is pre-configured with internal CVP IP address, so it is not required to update this file.

Go to labs folder:

$ cd ..

# Display inventory file
$ cat inventory.yml