nspcc-dev / nspcc-dev/neofs-node
Add nearest LOCODE search in neofs-cli by IP address
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 38
- Forks
- 51
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 38
Description
On NeoFS Storage node set up, the administrator needs to set the LOCODE for the node in configuration file. Now there is no easy way to find nearest LOCODE known to NeoFS InnerRing.
We need to add and option to neofs-cli, providing a list of nearest LOCODEs by taking an IP address from the command line arguments, finding the location via some public GeoIP DB and then finding the best matching LOCODE.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the neofs-cli entry point and the existing configuration or LOCODE handling. Determine how the CLI should accept an IP address, which public GeoIP database can provide its location, and how to query NeoFS InnerRing for matching LOCODEs. Done means the command returns a list of nearest LOCODEs for a supplied IP address.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100