I am only creating a network namespace, but I don't think this changes my core question.
Suppose I am running FRR/zebra in the default namespace and I startup a BGP instance in namespace one. BGP will connect to the default namespaces zebra instance. Now suppose I am running FRR/zebra in the default namespace and FRR/zebra in namespace two and I startup a BGP instance in namespace one, BGP is connecting to the zebra instance in namespace two now. Finally if I run zebra in namespace one and then start a bgp instance in one, it connects to the zebra running in namespace one. Is this the behavior we want to see? I also haven't tested to see which namepace gets choosen if I have multiple zebra instances running in different namespaces and I startup a bgp process in a namespace that doesn't have zebra also running. Or does start order matter here? thanks! donald Is this the behavior we actually want? On Wed, Jan 2, 2019 at 9:05 AM Andrew Lunn <and...@lunn.ch> wrote: > > On Tue, Jan 01, 2019 at 07:46:07PM -0500, Donald Sharp wrote: > > I have created multiple namespaces: > > > > sharpd@robot /v/l/frr> ip netns list > > two (id: 2) > > one (id: 1) > > EVA (id: 0) > > > > And am running a process in namespace two that creates a named socket > > `/var/log/frr/run/zserv.api`: > > Hi Donald > > Just to be sure... > > Are you creating only a network name space, and not a filesystem mount > namespace? > > I've successfully run hundred of FRR daemons in namespaces on Linux > for simulation work, but i always use both a network namespace and > mount namespace. /var/log/frr/run/zserv.api is clearly a filesystem > path, so you need to separate these at the filesystem level. > > Andrew