thielsen / docker-ceos

Building a simple leaf-spine topology on Docker for an Arista testbed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker with cEOS

WIP on a dockerized Arista leaf-spine test environment to replace my Vagrant environment. Advantages will include faster boot times for an environment giving the possibility of providing test driven network changes.

Installation instructions

Clone this repo then make sure docker is installed and fire up the containers with:

docker-compose up -d

You'll see an error about aaa but thats fine... Wait a minute for everything to come up and then we run a quick shell script to set up usernames/passwords and get the api up and running for Ansible.

bash setup.sh

You should see 'Copy completed successfully' printed out 6 times of this works properly. Now run the Ansible provisioning with:

ansible-playbook -i ansible/hosts ansible/provision.yml

Finally you can validate all is well with:

ansible-playbook -i ansible/hosts ansible/validate.yml

Switches and ports

  • docker-ceos_leaf-1_1 3011->22/tcp, 8011->80/tcp
  • docker-ceos_leaf-2_1 3012->22/tcp, 8012->80/tcp
  • docker-ceos_leaf-3_1 3013->22/tcp, 8013->80/tcp
  • docker-ceos_leaf-4_1 3014->22/tcp, 8014->80/tcp
  • docker-ceos_spine-1_1 3001->22/tcp, 8001->80/tcp
  • docker-ceos_spine-2_1 3002->22/tcp, 8002->80/tcp

Connecting to switches

docker exec -it spine-1 Cli
docker exec -it spine-2 Cli
docker exec -it leaf-1 Cli
docker exec -it leaf-2 Cli
docker exec -it leaf-3 Cli
docker exec -it leaf-4 Cli

About

Building a simple leaf-spine topology on Docker for an Arista testbed


Languages

Language:Shell 100.0%