[ixpmanager] country field within euroix export

Andreas Polyrakis apolyr at noc.grnet.gr
Tue Nov 13 09:55:35 GMT 2018


Hello

I feed our euro-ix export 
(https://portal.gr-ix.gr/api/v4/member-export/ixf/0.7) to IXPDB and I 
get the following errors:

Type
    Member Export
URL
    https://portal.gr-ix.gr/api/v4/member-export/ixf/0.7
Is imported

Status

    6 errors occurred:

    * country code is invalid: 'Greece'
    * country code is invalid: 'Greece'
    * country code is invalid: 'Greece'
    * country code is invalid: 'Greece'
    * country code is invalid: 'Greece'
    * country code is invalid: 'Greece'
Last process
    Nov. 13, 2018, 9:01 a.m.

IXPDB waits for country code, while our export contains the country name.

Indeed,

{
...
     "ixp_list": [
         {
             "shortname": "GR-IX::Athens",
             "name": "Greek Internet Exchange",
             "country": "Greece",
...
             "switch": [
                 {
...
                     "name": "eie-sw.gr-ix.gr",
...
                     "city": "Athens",
                     "country": "Greece",
...


However, I cannot find the place where "Greece" is set as a country, 
neither for the IXP nor for the switch.
For the IXP, I checked the ixp table and it is set correct to "GR".

mysql> select * from ixp;
+----+-------------------------+-----------+------------+----------+----------+----------+---------+
| id | name                    | shortname | address1   | address2 | 
address3 | address4 | country |
+----+-------------------------+-----------+------------+----------+----------+----------+---------+
|  1 | Greek Internet Exchange | GRIX      | Kifisias 7 | NULL | 
Athens   | 11523    | GR      |
+----+-------------------------+-----------+------------+----------+----------+----------+---------+

I cannot locate any country-related setting for the switch or for the 
corresponding facility.

Where is this information stored?

I see that there is the file /library/OSS/Countries.php, is there a 
chance that you automatically replace "GR" with "Greece" while exporting?

Thank you in advance,

Andreas










-- 
Andreas Polyrakis
GR-IX Manager // GRNET NOC Technical Manager
GRNET - Networking Research and Education
7, Kifisias Av., 115 23, Athens
t: +30 210 7474249 | c: +30 697 2832 445 | f: +30 210 7474490

Follow us: www.grnet.gr
Twitter: @grnet_gr | Facebook: @grnet.gr
LinkedIn: grnet | YouTube: GRNET EDET

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20181113/9333b8ec/attachment-0001.html>


More information about the ixpmanager mailing list