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: examples/05-nautobot-peeringdb/README.md
+13-15Lines changed: 13 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,4 @@
1
-
# playground-diffsync
2
-
3
-
## Description
4
-
5
-
This repository is just a set of examples around [diffsync](https://github.com/networktocode/diffsync) in order to understand how it works and how you could use it.
6
-
7
-
## Install dependencies
8
-
9
-
```bash
10
-
python3 -m venv .venv
11
-
source .venv/bin/activate
12
-
pip3 install -r requirements.txt
13
-
```
1
+
# Example 5 - PeeringDB to Nautobot synchronisation
14
2
15
3
## Context
16
4
@@ -20,14 +8,24 @@ In Peering DB there is a model that defines a `Facility` and you can get informa
20
8
21
9
Because of the nature of the demo, we will focus on syncing from PeeringDB to Nautobot (we can assume that PeeringDB is the authoritative System of Record) and we will skip the `delete` part of the `diffsync` library.
22
10
23
-
## Show me the code
24
-
25
11
We have 3 files:
26
12
27
13
-`models.py`: defines the reference models that we will use: `RegionMode` and `SiteModel`
28
14
-`adapter_peeringdb.py`: defines the PeeringDB adapter to translate via `load()` the data from PeeringDB into the reference models commented above. Notice that we don't define CRUD methods because we will sync from it (no to it)
29
15
-`adapter_nautobot.py`: deifnes the Nautobot adapter with the `load()` and the CRUD methods
30
16
17
+
> The source code for this example is in Github in the [examples/05-nautobot-peeringdb/](https://github.com/networktocode/diffsync/tree/main/examples/05-nautobot-peeringdb) directory.
0 commit comments