nspcc-dev / nspcc-dev/neofs-node

Add nearest LOCODE search in neofs-cli by IP address

Open
#2,086 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

config enhancement good first issue help wanted I3 neofs-cli S4 U4
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.