sbng / mrt2mmdb

Convert a mrt file into a maxmind database file
1 stars 0 forks source link

Change field names #7

Closed johnhtodd closed 4 months ago

johnhtodd commented 4 months ago

Vector now has flexible interpretation of MMDB files, so we no longer need to have name-overload in the existing output.

You can change "isp" to "path" and "organization" to "prefix" to have them make sense instead of using old values.

sbng commented 4 months ago

@johnhtodd fixed in ee1bce1 Please verify

johnhtodd commented 4 months ago

Will check when #6 is completed, as those are tied together.

sbng commented 4 months ago
$ ../mrt2mmdb/lookup.py --mmdb ../mrt2mmdb/data/bgpscan.mmdb --ipadd 100.1.16.0                   [!rename_attribute]
{
 "autonomous_system_number": 701,
 "autonomous_system_organization": "UUNET",
 "prefix": "100.1.0.0/16",
 "path": "42 2914 701"
}
johnhtodd commented 4 months ago

Works well! This can be closed.

sbng commented 4 months ago

merge into main branch