From 1343dcd3610215288b3244ad75a78e4639187703 Mon Sep 17 00:00:00 2001 From: pa Date: Wed, 7 Aug 2024 08:06:58 +0000 Subject: [PATCH] add port to playground clab and rest client to container --- .../.devcontainer/devcontainer.json | 4 ++- .../clab/topology.clab.yml | 8 +++++ demos/playground-small-evpn-mlag/test.rest | 29 +++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 demos/playground-small-evpn-mlag/test.rest diff --git a/containers/playground-small-evpn-mlag/.devcontainer/devcontainer.json b/containers/playground-small-evpn-mlag/.devcontainer/devcontainer.json index b3819b2..fa2e4f3 100644 --- a/containers/playground-small-evpn-mlag/.devcontainer/devcontainer.json +++ b/containers/playground-small-evpn-mlag/.devcontainer/devcontainer.json @@ -29,7 +29,9 @@ "DavidAnson.vscode-markdownlint", // various tools "tuxtina.json2yaml", - "mutantdino.resourcemonitor" + "mutantdino.resourcemonitor", + //REST Client + "humao.rest-client" ] } } diff --git a/demos/playground-small-evpn-mlag/clab/topology.clab.yml b/demos/playground-small-evpn-mlag/clab/topology.clab.yml index 1bd9287..9de87d4 100644 --- a/demos/playground-small-evpn-mlag/clab/topology.clab.yml +++ b/demos/playground-small-evpn-mlag/clab/topology.clab.yml @@ -19,21 +19,29 @@ topology: binds: - sn/s01.txt:/mnt/flash/ceos-config:ro startup-config: init-configs/s01.cfg + ports: + - 4011:443/tcp s02: mgmt-ipv4: 10.0.1.2 binds: - sn/s02.txt:/mnt/flash/ceos-config:ro startup-config: init-configs/s02.cfg + ports: + - 4012:443/tcp l01: mgmt-ipv4: 10.0.2.1 binds: - sn/l01.txt:/mnt/flash/ceos-config:ro startup-config: init-configs/l01.cfg + ports: + - 4021:443/tcp l02: mgmt-ipv4: 10.0.2.2 binds: - sn/l02.txt:/mnt/flash/ceos-config:ro startup-config: init-configs/l02.cfg + ports: + - 4022:443/tcp h01: mgmt-ipv4: 10.0.3.1 startup-config: init-configs/h01.cfg diff --git a/demos/playground-small-evpn-mlag/test.rest b/demos/playground-small-evpn-mlag/test.rest new file mode 100644 index 0000000..88de0e8 --- /dev/null +++ b/demos/playground-small-evpn-mlag/test.rest @@ -0,0 +1,29 @@ +POST https://10.0.1.1/login/ + +{ + "username": "arista", + "password": "arista" +} + +### + +POST https://10.0.1.1/command-api/ + +{ + "jsonrpc": "2.0", + "method": "runCmds", + "params": { + "version": 1, + "cmds": [ + "show version" + ], + "format": "json", + "timestamps": false, + "autoComplete": false, + "expandAliases": false, + "stopOnError": true, + "streaming": false, + "includeErrorDetail": false + }, + "id": "EapiExplorer-1" +}