You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
9 months ago | |
---|---|---|
.vscode | 9 months ago | |
autopkt | 9 months ago | |
docs | 9 months ago | |
templates/pkt | 9 months ago | |
.gitignore | 9 months ago | |
.markdownlint.json | 9 months ago | |
LICENCE | 9 months ago | |
README.md | 9 months ago | |
create_pkt.py | 9 months ago | |
create_plan.py | 9 months ago | |
requirements.txt | 10 months ago | |
tests.py | 9 months ago |
README.md
AutoPKT
Automating a packet tracer project
Install the requirements in a venv
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
SG/DSG calculation
To create the network plan, run the following command:
python3 create_plan.py <protocol> <name1> <name2>
Where protocol is rip
or ospf
and name<n>
are your names (one name is supported too).
PKT file generation
After creating the plan with the previous command, you can generate an .xml file with this command:
python3 create_pkt.py
Then, we execute pka2xml in a docker container to generate a .pkt from the .xml:
docker run --rm -v `pwd`/output:/pkt quentinn42/pka2xml:latest pka2xml -e /pkt/Projet.xml /pkt/Projet.pkt
Report
You can find our project report in the docs/rapport
folder, it is written in french.