From d2169f7194db212b773d3c404cd2db5dcce97976 Mon Sep 17 00:00:00 2001 From: Xander Petty Date: Tue, 27 Dec 2022 13:54:34 -0600 Subject: [PATCH 1/2] Created docker image for running pyATS in GNS3 --- appliances/cisco-pyats.gns3a | 19 +++++++++++++++++++ docker/pyats/dockerfile | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 appliances/cisco-pyats.gns3a create mode 100644 docker/pyats/dockerfile diff --git a/appliances/cisco-pyats.gns3a b/appliances/cisco-pyats.gns3a new file mode 100644 index 0000000..70ff122 --- /dev/null +++ b/appliances/cisco-pyats.gns3a @@ -0,0 +1,19 @@ +{ + "appliance_id": "d9ce131e-ecdc-49d2-be7d-d883d3919a06", + "name": "Cisco PyATS", + "category": "guest", + "description": "pyATS is an end-to-end DevOps automation ecosystem. Agnostic by design, pyATS enable network engineers to automate their day-to-day DevOps activities, perform stateful validation of their device operational status, build a safety-net of scalable, data-driven and reusable tests around their network, and visualize everything in a modern, easy to use dashboard.", + "vendor_name": "Cisco", + "vendor_url": "https://cisco.com", + "product_name": "PyATS", + "product_url": "https://developer.cisco.com/pyats/", + "registry_version": 3, + "status": "stable", + "maintainer": "Xander Petty", + "maintainer_email": "Xander.Petty@protonmail.com", + "docker": { + "adapters": 1, + "image": "xander12093/pyats:latest", + "console_type": "telnet" + } +} \ No newline at end of file diff --git a/docker/pyats/dockerfile b/docker/pyats/dockerfile new file mode 100644 index 0000000..f2d3373 --- /dev/null +++ b/docker/pyats/dockerfile @@ -0,0 +1,20 @@ +# FROM ciscotestautomation/pyats:latest-full +FROM ubuntu:latest + +WORKDIR /pyats + +RUN apt update +# RUN apt upgrade -yy +RUN apt install -y nano +RUN apt install -y net-tools +RUN apt install -y openssh-client +RUN echo KexAlgorithms diffie-hellman-group14-sha1 >> /etc/ssh/ssh_config +RUN echo HostKeyAlgorithms ssh-rsa >> /etc/ssh/ssh_config +RUN apt install -y python3 +RUN apt install -y python3-pip +RUN apt install -y traceroute +RUN apt install -y iputils-ping +RUN python3 -m pip install --upgrade pip wheel setuptools +RUN python3 -m pip install "pyats[full]" + +ENTRYPOINT [ "/bin/bash" ] \ No newline at end of file From 75b9d761ba4b662e29e0d251d412d7698f3907d8 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 6 Jan 2023 22:49:03 +0800 Subject: [PATCH 2/2] Use gns3 distributed image --- appliances/cisco-pyats.gns3a | 4 ++-- docker/pyats/{dockerfile => Dockerfile} | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) rename docker/pyats/{dockerfile => Dockerfile} (84%) diff --git a/appliances/cisco-pyats.gns3a b/appliances/cisco-pyats.gns3a index 70ff122..7fd45a5 100644 --- a/appliances/cisco-pyats.gns3a +++ b/appliances/cisco-pyats.gns3a @@ -13,7 +13,7 @@ "maintainer_email": "Xander.Petty@protonmail.com", "docker": { "adapters": 1, - "image": "xander12093/pyats:latest", + "image": "gns3/pyats:latest", "console_type": "telnet" } -} \ No newline at end of file +} diff --git a/docker/pyats/dockerfile b/docker/pyats/Dockerfile similarity index 84% rename from docker/pyats/dockerfile rename to docker/pyats/Dockerfile index f2d3373..f06deeb 100644 --- a/docker/pyats/dockerfile +++ b/docker/pyats/Dockerfile @@ -1,10 +1,8 @@ -# FROM ciscotestautomation/pyats:latest-full FROM ubuntu:latest WORKDIR /pyats RUN apt update -# RUN apt upgrade -yy RUN apt install -y nano RUN apt install -y net-tools RUN apt install -y openssh-client @@ -17,4 +15,4 @@ RUN apt install -y iputils-ping RUN python3 -m pip install --upgrade pip wheel setuptools RUN python3 -m pip install "pyats[full]" -ENTRYPOINT [ "/bin/bash" ] \ No newline at end of file +ENTRYPOINT [ "/bin/bash" ]