Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement netIP functionalities in CLI #156

Closed
awaismslm opened this issue Aug 3, 2023 · 1 comment
Closed

Implement netIP functionalities in CLI #156

awaismslm opened this issue Aug 3, 2023 · 1 comment

Comments

@awaismslm
Copy link
Collaborator

Please implement the following commands in cli.

CLI: ipinfo tool is_v4
Implement func (ip Addr) Is4() bool function of netIP.

CLI: ipinfo tool is_v4in6
Implement func (ip Addr) Is4In6() bool function of netIP.

ipinfo tool is_v6
Implement func (ip Addr) Is6() bool function of netIP.

CLI: ipinfo tool valid
Implement `ipinfo tool valid`` function of netIP.

CLI: ipinfo tool next
Implement func (ip Addr) Next() Addr function of netIP.

CLI: ipinfo tool prev
Implement func (ip Addr) Prev() Addr function of netIP.

CLI: ipinfo tool unmap
Implement func (ip Addr) Unmap() Addr function of netIP.

CLI: ipinfo tool prefix addr
Implement func (p Prefix) Addr() Addr function of netIP.

CLI: ipinfo tool prefix bits
Implement func (p Prefix) Bits() int function of netIP.

CLI: ipinfo tool prefix is_one_ip
Implement func (p Prefix) IsSingleIP() bool function of netIP.

CLI: ipinfo tool prefix valid
Implement func (p Prefix) IsValid() bool function of netIP.

CLI: ipinfo tool prefix masked
Implement func (p Prefix) Masked() Prefix function of netIP.

@UmanShahzad
Copy link
Contributor

Done and live.

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

No branches or pull requests

2 participants