Re: [PATCH] ip: Support filter links/neighs with no master
From: David Ahern <hidden>
Date: 2021-08-24 16:17:01
On 8/24/21 8:16 AM, Lahav Schlesinger wrote:
quoted
quoted
diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 85534aaf..a5b683f5 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c@@ -61,7 +61,7 @@ static void usage(void) " [ to PREFIX ] [ FLAG-LIST ] [ label LABEL ] [up]\n" " ip address [ show [ dev IFNAME ] [ scope SCOPE-ID ] [ master DEVICE ]\n"move [ nomaster ] to here on a new line to keep the existing line length, andquoted
" [ type TYPE ] [ to PREFIX ] [ FLAG-LIST ]\n" - " [ label LABEL ] [up] [ vrf NAME ] ]\n" + " [ label LABEL ] [up] [ vrf NAME ] [ nomaster ] ]\n"make this 'novrf' for consistency with existing syntax. Similarly for the other 2 commands.I think "nomaster" is more fitting here, because this option only affects interfaces that have no master at all, so e.g. slaves of a bundle will not be returned by the "nomaster" option, even if they are in the default VRF.
I was thinking both - 'nomaster' for bridges and 'novrf' for VRFs. Just friendlier syntax for the latter.
I'm planning next to add support for the "novrf" option which will indeed only affect interfaces which are in the default VRF, even if they have a master.
ok,