You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ sudo reboot now
41
41
### Getting Started
42
42
To build a new topology, the following files/data structures need to be created.
43
43
-`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.
44
45
-`topologies/{name}.yaml` - This file is leveraged by `build/topo-builder.py` to create the necessary commands to build the topology.
45
46
-`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.
46
47
-`build/topo-build.sh` This is a wrapper script that calls both `build/topo-builder.py` and `build/yamlviz.py`
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:
141
148
To create the necessary scripts and leverage either no startup-configs or leverage already provided ones:
142
149
```
143
150
./topo-build.sh -t {topo}
@@ -174,7 +181,7 @@ or
174
181
build/topo-builder.py -t {topo} -s
175
182
```
176
183
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.
178
185
The four main scripts created are as follows with their description:
179
186
-`Create.sh` - Creates all Open vSwitch bridges, containers, starts containers and links all containers together.
180
187
-`Start.sh` - Starts all stopped containers and links all containers together.
0 commit comments