Skip to content

allow "| grep" for all grcli commands #346

@christophefontaine

Description

@christophefontaine

Description

With many routes or addresses / whatever, the output of grcli may be high.
We already have the option in stats software pattern <re>, but it would be great to expand that to any command in grcli.
And to provide a better "look and feel" to the user, | grep would be a great addition !

Context and Use Cases

[root@droplet05 core]# podman exec -ti grout-boot grcli route show | grep af=IPv6
0    fc00:1::/64        type=L3 iface=fabric vrf=0 origin=INTERNAL af=IPv6 addr=fc00:1::55/64 mac=7a:81:dc:d4:2f:f6 static local link
0    fe80:101::/64      type=L3 iface=eno49v1 vrf=0 origin=INTERNAL af=IPv6 addr=fe80::7a81:dcff:fed4:2ff6/64 mac=7a:81:dc:d4:2f:f6 static local link
0    fe80:102::/64      type=L3 iface=eno50v0 vrf=0 origin=INTERNAL af=IPv6 addr=fe80::e6f:90ff:feb1:7d01/64 mac=0e:6f:90:b1:7d:01 static local link
0    fe80:103::/64      type=L3 iface=fabric vrf=0 origin=INTERNAL af=IPv6 addr=fe80::7a81:dcff:fed4:2ff6/64 mac=7a:81:dc:d4:2f:f6 static local link
1    fe80:104::/64      type=L3 iface=ocp vrf=1 origin=INTERNAL af=IPv6 addr=fe80::7a81:dcff:fed4:2ff6/64 mac=7a:81:dc:d4:2f:f6 static local link

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds review and proper triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions