Skip to content

Commit

Permalink
Merge pull request #5 from ankudinov/add_port_forwarding
Browse files Browse the repository at this point in the history
add port to playground clab and rest client to container
  • Loading branch information
ankudinov authored Aug 7, 2024
2 parents 6b36bc2 + 1343dcd commit 4b75944
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 4b75944

Please sign in to comment.