[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <11cdc79f-a8c9-e41f-ac4d-4906b358e845@gmail.com>
Date: Fri, 14 Jun 2019 08:35:29 -0600
From: David Ahern <dsahern@...il.com>
To: Matteo Croce <mcroce@...hat.com>, netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...nel.org>
Subject: Re: [PATCH iproute2 v2 0/3] refactor the cmd_exec()
On 6/11/19 10:10 AM, Matteo Croce wrote:
> Refactor the netns and ipvrf code so less steps are needed to exec commands
> in a netns or a VRF context.
> Also remove some code which became dead. bloat-o-meter output:
>
This breaks the vrf reset after namespace switch
# ip vrf ls
Name Table
-----------------------
red 1001
Set shell into vrf red context:
# ip vrf exec red bash
Add new namespace and do netns exec:
# ip netns add foo
# ./ip netns exec foo bash
Check the vrf id:
# ip vrf id
red
With the current command:
# ip netns exec foo bash
# ip vrf id
<nothing - no vrf bind>
Powered by blists - more mailing lists