Re: ip-nexthop does not support flush by id

2021-03-30 Thread David Ahern
On 3/30/21 7:05 AM, Ido Schimmel wrote: > Looks like a bug. 'flush' does not really make sense with 'id', but > 'list id' works, so I think 'flush id' should also work. right, neither were intended. If you know the id, you don't need the generic list / flush option. > > Can you send a patch? Ag

Re: ip-nexthop does not support flush by id

2021-03-30 Thread Ido Schimmel
On Tue, Mar 30, 2021 at 08:44:30PM +0800, xuchunmei wrote: > Hi, > > I use iproute-5.10 with kernel-5.10.6, I found that ip-nexthop does not > support flush by id, is it by design? > > Reproduce steps: > # ip netns add me > # ip -netns me addr add 127.0.0.1/8 dev lo >

ip-nexthop does not support flush by id

2021-03-30 Thread xuchunmei
Hi, I use iproute-5.10 with kernel-5.10.6, I found that ip-nexthop does not support flush by id, is it by design? Reproduce steps: # ip netns add me # ip -netns me addr add 127.0.0.1/8 dev lo # ip -netns me link set lo up # ip -netns me nexthop add id 105 blackhole proto 99 # ip -netns me