Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Add feature to output non-common facilities and filter by country code#20

Open
ryonkn wants to merge 2 commits intorucarrol:masterfrom
ryonkn:add-country-code-to-missing-private
Open

Add feature to output non-common facilities and filter by country code#20
ryonkn wants to merge 2 commits intorucarrol:masterfrom
ryonkn:add-country-code-to-missing-private

Conversation

@ryonkn
Copy link

@ryonkn ryonkn commented Mar 30, 2025

Description:

This Pull Request introduces a new feature to PeerFinder that allows users to identify facilities that are not shared between Autonomous System Numbers (ASNs). This is particularly useful for network operators who are considering establishing new Points of Presence (POPs) for Private Network Interconnect (PNI) when common facilities are not found.

Key changes:

  • Added a new option to output facilities that are not in common between the specified ASNs
  • Implemented functionality to filter the output of non-common facilities by country code

Benefits:

  • Enables network operators to efficiently identify potential locations for new POPs
  • Provides more granular control over facility output through country code filtering
  • Improves the utility of PeerFinder for PNI planning and optimization

Example Usage:

$ peerfinder --asn 2603 13414 --missing-private
Fetching PeeringDB info for 2603,13414
+-------------------------------------------------+-----------+---------------+
|                     Facility                    |  NORDUnet | Twitter, Inc. |
+-------------------------------------------------+-----------+---------------+
|             BT Citywest Data Centre             | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|                   CERN Geneva                   | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|         Digital Realty ATL (56 Marietta)        |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|          Digital Realty Amsterdam AMS9          | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|         Digital Realty Copenhagen CPH1-3        | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|         Digital Realty Frankfurt FRA1-16        | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|           Digital Realty NYC (32 AofA)          | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|         Digital Realty Stockholm STO1-6         | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|      Equinix AM7 - Amsterdam, Kuiperberweg      |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|              Equinix AT1 - Atlanta              |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|               Equinix DA3 - Dallas              |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|      Equinix FR5 - Frankfurt, KleyerStrasse     |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|            Equinix MI1 - Miami, NOTA            |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|   Equinix NY2/NY4/NY5/NY6 - New York, Secaucus  |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|               Equinix OS1 - Osaka               |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|             Equinix SG1 - Singapore             |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|         Equinix SK1 - Stockholm, Bromma         | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
| Equinix SV1/SV5/SV10 - Silicon Valley, San Jose |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|             Equinix SY1/SY2 - Sydney            |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|               Equinix TY1 - Tokyo               |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|              Forskningsparken Oslo              | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|             Global Switch Singapore             | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|           GlobalConnect Hamburg (HAM2)          | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|          MEGA-i (iAdvantage Hong Kong)          | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|                      RIX-K2                     | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|                      RIX-TG                     | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|                 Telia Copenhagen                | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|               Telia Stockholm STK2              | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|                      UNI-C                      | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|                  Verne Iceland                  | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+

$ peerfinder --asn 2603 13414 --missing-private US
Fetching PeeringDB info for 2603,13414
+-------------------------------------------------+-----------+---------------+
|                  Facility in US                 |  NORDUnet | Twitter, Inc. |
+-------------------------------------------------+-----------+---------------+
|         Digital Realty ATL (56 Marietta)        |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|           Digital Realty NYC (32 AofA)          | ASN: 2603 |               |
+-------------------------------------------------+-----------+---------------+
|              Equinix AT1 - Atlanta              |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|               Equinix DA3 - Dallas              |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|            Equinix MI1 - Miami, NOTA            |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
|   Equinix NY2/NY4/NY5/NY6 - New York, Secaucus  |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+
| Equinix SV1/SV5/SV10 - Silicon Valley, San Jose |           |   ASN: 13414  |
+-------------------------------------------------+-----------+---------------+

Additional Notes:

  • Please review the changes and provide any feedback or suggestions
  • I believe this new function will be valuable to many network engineers

@ryonkn
Copy link
Author

ryonkn commented May 5, 2025

@rucarrol I submitted this pull request a while ago and would appreciate if you could review it when you have time. Thank you!

Sign up for free to 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.

1 participant

Comments