Skip to content

Commit

Permalink
add port to playground clab and rest client to container
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov committed Aug 7, 2024
1 parent 6b36bc2 commit 1343dcd
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"DavidAnson.vscode-markdownlint",
// various tools
"tuxtina.json2yaml",
"mutantdino.resourcemonitor"
"mutantdino.resourcemonitor",
//REST Client
"humao.rest-client"
]
}
}
Expand Down
8 changes: 8 additions & 0 deletions demos/playground-small-evpn-mlag/clab/topology.clab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions demos/playground-small-evpn-mlag/test.rest
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 1343dcd

Please sign in to comment.