ipinfo/cli

Implement netIP functionalities in CLI

awaismslm opened this issue · 1 comments

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.

Done and live.