Metadata-Version: 2.4
Name: bird-ospf-map
Version: 0.1.7
Summary: 
License-File: LICENSE
Author: Pavel Dostál
Author-email: pdostal@pdostal.cz
Requires-Python: <4.0,>=3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: argparse (>=1.4.0,<2.0.0)
Requires-Dist: click (>=8.1.8,<9.0.0)
Requires-Dist: paramiko (>=3.5.1,<4.0.0)
Requires-Dist: pathlib (>=1.0.1,<2.0.0)
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
Description-Content-Type: text/markdown

# bird-ospf-map

OSPF connection parser and maybe later even map generator


## Development

```bash
poetry env activate
poetry install
ssh router sudo birdc show ospf state all ngn | poetry run bird_ospf_map -c ~/.bird-ospf-map.yaml
poetry run flake8
poetry run pytest
```


## Prerequisities
 * Bird2 with OSPF running


## Packaging

The package is in [PyPi](https://pypi.org/project/bird-ospf-map/) and in [OBS](https://build.opensuse.org/package/show/home:pdostal/python-bird-ospf-map) under `home:pdostal/python-bird-ospf-map`.

```bash
poetry version patch
git commit -am "axy"
git tag v$(poetry version -s) 
poetry build
poetry publish
py2pack fetch bird_ospf_map
osc add bird_ospf_map*
vim python-bird-ospf-map.spec # bump the version
osc vc # write changelog (use commit messages)
osc commit
```


## Resources
 * We generate the graph using [the `Mermaid` library](https://mermaid.js.org/syntax/flowchart.html).
 * The `json` output can be used by [D3.js](https://github.com/d3/d3)

