Skip to content

Commit 6039689

Browse files
committed
Merge branch 'repo-starter' into 'master'
cleaning up repo for more examples based See merge request networkRob/rLab-eos!17
2 parents 51a5970 + a8fe967 commit 6039689

323 files changed

Lines changed: 9 additions & 23725 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Readme.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ sudo reboot now
4141
### Getting Started
4242
To build a new topology, the following files/data structures need to be created.
4343
- `build/password_hash.py` - This script will generate a SHA512 hashed password to be entered into the topology yaml file.
44+
- `examples/topologies/{name}.yaml` - This directory containers some example/sample topology files to help get started. These can be copied to the `topologies/` directory for use.
4445
- `topologies/{name}.yaml` - This file is leveraged by `build/topo-builder.py` to create the necessary commands to build the topology.
4546
- `build/yamlviz.py` This script will draw a cabling diagram of your topology. It writes a PNG image named after your topology in the `topologies/` directory.
4647
- `build/topo-build.sh` This is a wrapper script that calls both `build/topo-builder.py` and `build/yamlviz.py`
@@ -137,7 +138,13 @@ sudo podman build -t chost:{chostimage_tag} build/hosts/.
137138
```
138139
{chostimage_tag} = tag for the image, ie `0.5`
139140

140-
3. Create the topology scripts:
141+
3. Copy or create a topology definition file. Example definition files are found in `examples/topologies`. As a quick-start, copy one of the definition files to the `topologies/` directory. Otherwise you may create your own topology definition file and save it in `topologies/`
142+
143+
```
144+
cp examples/topologies/l2.yaml topologies
145+
```
146+
147+
4. Create the topology scripts:
141148
To create the necessary scripts and leverage either no startup-configs or leverage already provided ones:
142149
```
143150
./topo-build.sh -t {topo}
@@ -174,7 +181,7 @@ or
174181
build/topo-builder.py -t {topo} -s
175182
```
176183

177-
4. The `topo-builder.py` script will create a minimum of 4 bash scripts. They are located in `scripts/{TOPO_NAME}/`. It is important to run the commands for the project directories top-level directory.
184+
5. The `topo-builder.py` script will create a minimum of 4 bash scripts. They are located in `scripts/{TOPO_NAME}/`. It is important to run the commands for the project directories top-level directory.
178185
The four main scripts created are as follows with their description:
179186
- `Create.sh` - Creates all Open vSwitch bridges, containers, starts containers and links all containers together.
180187
- `Start.sh` - Starts all stopped containers and links all containers together.

configs/.placeholder

Whitespace-only changes.

configs/ATD/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

configs/ATD/BASE

Lines changed: 0 additions & 15 deletions
This file was deleted.

configs/ATD/host1/cfgs/BASE-host1

Lines changed: 0 additions & 44 deletions
This file was deleted.

configs/ATD/host1/cfgs/BGP-host1

Lines changed: 0 additions & 45 deletions
This file was deleted.

configs/ATD/host1/cfgs/CVP-host1

Lines changed: 0 additions & 45 deletions
This file was deleted.

configs/ATD/host1/cfgs/L2EVPN-host1

Lines changed: 0 additions & 45 deletions
This file was deleted.

configs/ATD/host1/cfgs/L3EVPN-host1

Lines changed: 0 additions & 45 deletions
This file was deleted.

configs/ATD/host1/cfgs/MLAG-host1

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)