Skip to content

CFP: Provide cilium ip get command enhancements to filter output by CIDR or labels. #34632

@vasu-dasari

Description

@vasu-dasari

Cilium Feature Proposal

At present, there is no option to display information about the IP cache (ipcache) by CIDR or labels. This necessitates capturing all ipcache information using the "cilium ip list" command and parsing it subsequently. The suggested feature aims to display ipcache information based on CIDR or labels.

Once implemented, users can utilize the cilium ip command as follows:

Usage:
  cilium ip get ( <cidr> |-l <identity labels> ) [flags]

Flags: -h, --help             help for get
  -l, --labels strings   list of labels
  -o, --output string    json| yaml| jsonpath='{}'
  -v, --verbose          Print all fields of ipcache

Is your proposed feature related to a problem?
No

Describe the feature you'd like

Include any specific requirements you need

(Optional) Describe your proposed solution

I will contribute the code to provide above CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good-first-issueGood starting point for new developers, which requires minimal understanding of Cilium.kind/cfpCilium Feature Proposalkind/enhancementThis would improve or streamline existing functionality.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions