Open-source module to configure VyOS network devices.
In order to get started with using this module, we have prepared a bunch of YouTube videos to walk you through the entire process. The links to these videos are mentioned below.
- OSPF configuration - Flat model
- OSPF configuration - Enhanced model
- Contributing to VyOS module - OSPFv3
Python 3.9+
is required to run tests. If your system does not ship with that version installed, pyenv can be used to install additional Python versions.
-
Create a virtual environment:
python3.9 -m venv ~/.virtualenvs/vyos
-
Install the dependencies:
source ~/.virtualenvs/vyos/bin/activate pip install -r requirements.txt pip install -r requirements.dev.txt
-
Set up the test environment by following this guide.
-
Make a clean-slate configuration file by connecting to the
VyOS
device and running the following command:configure save /config/clear.config
This
clear.config
file is used in the tests to automatically clear the configuration, avoiding potential conflicts. -
Run the tests:
export VY_TEST_HOST="10.11.12.100" pytest tests
All contributions are welcome by following this guide. We have a video for that as well!