Skip to content

Commit

Permalink
Merge pull request #193 from open-traffic-generator/mkdocs-how-to
Browse files Browse the repository at this point in the history
mkdocs fixes in prerequisites.md
  • Loading branch information
bortok authored Apr 23, 2024
2 parents c59ea61 + 22b9575 commit 94f9ef7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
34 changes: 17 additions & 17 deletions docs/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ For more granularity on resource requirements for advanced deployments, see [Res
You may have to use `python3` or `absolute path to python executable` depending on the Python Installation on your system.

```sh
python -m pip --help
python -m pip --help
```

If you do not see a help message, see [pip installation guide](https://pip.pypa.io/en/stable/installing/), .

* **It is recommended that you use a python virtual environment for development.**

```sh
python -m pip install --upgrade virtualenv
# create virtual environment inside `env/` and activate it.
python -m virtualenv env
# on linux
source env/bin/activate
# on windows
env\Scripts\activate on Windows
python -m pip install --upgrade virtualenv
# create virtual environment inside `env/` and activate it.
python -m virtualenv env
# on linux
source env/bin/activate
# on windows
env\Scripts\activate on Windows
```

> If you do not want to activate the virtual env, use `env/bin/python` (or `env\scripts\python` on Windows) instead of `python`.
Expand All @@ -62,17 +62,17 @@ In order for `ixia-c-traffic-engine` to function, several settings need to be tu

```sh
# check interface details
ip addr
ip addr
# configure as required
ip link set eth1 up
ip link set eth1 promisc on
ip link set eth1 up
ip link set eth1 promisc on
```

2. (Optional) You need to create the `veth` interface pairs, to deploy the `ixia-c-traffic-engine` against them.

```sh
# create veth pair veth1 and veth2
ip link add veth1 type veth peer name veth2
ip link set veth1 up
ip link set veth2 up
```
```sh
# create veth pair veth1 and veth2
ip link add veth1 type veth peer name veth2
ip link set veth1 up
ip link set veth2 up
```
6 changes: 3 additions & 3 deletions mkdocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This repo contains the content for the [Ixia-c.dev](https://ixia-c.dev/) web-sit

## Prerequisites

* Python 3.7+. In the commands below we assume use have `python3` executable. If you have a different name, change accordingly.
* Python 3.10+. In the commands below we assume use have `python3` executable. If you have a different name, change accordingly.

* PIP

Expand All @@ -25,8 +25,8 @@ This repo contains the content for the [Ixia-c.dev](https://ixia-c.dev/) web-sit
```Shell
git clone https://github.com/open-traffic-generator/ixia-c.git --recursive
cd ixia-c
git checkout mkdocs
python3 -m venv venv
git checkout -b __NEW_BRANCH_NAME__
python3.10 -m venv venv
source venv/bin/activate
```

Expand Down

0 comments on commit 94f9ef7

Please sign in to comment.