Skip to content

Update example05 - #107

Merged
glennmatthews merged 22 commits into
developfrom
example05-update
Jun 30, 2022
Merged

Update example05#107
glennmatthews merged 22 commits into
developfrom
example05-update

Conversation

@chadell

Copy link
Copy Markdown
Contributor

still adding some new content

To be updated when #106 is merged

@chadellchadell changed the title [WIP] Update example05Update example05Jun 8, 2022
@chadell
chadell marked this pull request as ready for review June 8, 2022 12:37
The goal of this example is to synchronize some data from [PeeringDB](https://www.peeringdb.com/), that as the name suggests is a DB where peering entities define their facilities and presence to facilitate peering, towards [Nautobot Demo](https://demo.nautobot.com/) that is a always on demo service for [Nautobot](https://nautobot.readthedocs.io/), an open source Source of Truth.

In Peering DB there is a model that defines a `Facility` and you can get information about the actual data center and the city where it is placed. In Nautobot, this information could be mapped to the `Region` and `Site` models, where `Region` can define hierarchy. For instance, Barcelona is in Spain and Spain is in Europe, and all of them are `Regions`. And, finally, the actual datacenter will refer to the `Region` where it is placed.
In Peering DB there is a model that defines a `Facility` and you can get information about the actual data center and the city where it is placed. In Nautobot, this information could be mapped to the `Region` and `Site` models, where `Region` can depend from other `Region` and also contain `Site` as children. For instance, Barcelona is in Spain and Spain is in Europe, and all of them are `Regions`. And, finally, the actual datacenter will refer to the `Region` where it is placed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking - should that last sentence be amended to indicate that that the datacenter would be a Site associated with the Barcelona Region?

Comment threadexamples/05-nautobot-peeringdb/README.md Outdated
Comment threadexamples/05-nautobot-peeringdb/README.md Outdated
Comment threadexamples/05-nautobot-peeringdb/README.md Outdated
Comment threadexamples/05-nautobot-peeringdb/README.md
Comment threadexamples/05-nautobot-peeringdb/dockerfile
Comment threadexamples/05-nautobot-peeringdb/main.py Outdated
Comment threadexamples/05-nautobot-peeringdb/main.py
Comment threadexamples/05-nautobot-peeringdb/requirements.txt Outdated
pycountry
requests
IPython
pynautobot

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any minimum pynautobot version?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary

@Kircheneer

Copy link
Copy Markdown
Contributor

Should the destination branch be develop here?

@chadell

Copy link
Copy Markdown
ContributorAuthor

Should the destination branch be develop here?

yes, but there was no develop branch when this PR was created. It would be great to unblock it. Feel free to complete it

@glennmatthews
glennmatthews changed the base branch from main to developJune 30, 2022 17:18
glennmatthews
glennmatthews previously approved these changes Jun 30, 2022
Comment threadexamples/05-nautobot-peeringdb/dockerfile
@glennmatthews
glennmatthews merged commit c13cb05 into developJun 30, 2022
@glennmatthews
glennmatthews deleted the example05-update branch June 30, 2022 18:29
@glennmatthewsglennmatthews mentioned this pull request Jun 30, 2022
glennmatthews added a commit that referenced this pull request Jun 30, 2022
* New Example06 - IP Prefixes (#111)
* first draft of example06
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
* Attempt to fix the read the docs pipeline. (#115)
* Attempt to fix the read the docs pipeline.
* Yamllint.
Co-authored-by: Leo Kirchner <leo@kirchne.red>
* Update CODEOWNERS (#113)
* Fix get() by modelname (#118)
* Update example05 (#107)
* Update example05
* Use site as children
* Add update after adding children
* Add pylint disable until Redis code is in
* Update example
* simplify
* wip
* wip
* Update example
* Take redis from main
* imprort order
* yml
* update readme
* Use diffsync from pypi
* Apply suggestions from code review
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
* Code review
* replace bash by python exec
* Rename dockerfile to Dockerfile
* Update docs source
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
* Update CHANGELOG and bump version
Co-authored-by: Christian Adell <chadell@gmail.com>
Co-authored-by: Leo Kirchner <Kircheneer@users.noreply.github.com>
Co-authored-by: Leo Kirchner <leo@kirchne.red>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@chadell@Kircheneer@glennmatthews