]> git.proxmox.com Git - mirror_frr.git/commit - watchfrr/watchfrr.c
watchfrr: Allow an integrated config to work within a namespace
authorDonald Sharp <sharpd@nvidia.com>
Tue, 5 Oct 2021 00:32:25 +0000 (20:32 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 6 Oct 2021 16:21:56 +0000 (12:21 -0400)
commita91f5417d8e7188b61ddecd4224fbba0f0c61e78
tree248af92ad1f970a8d7febdc5b5081fe39f4dfa9c
parent11ed589224c8086903dcc1dbd28de4b98dcb7516
watchfrr: Allow an integrated config to work within a namespace

Since watchfrr invokes vtysh to gather the show run output and
write the data, if we are operating inside of a namespace FRR
must also pass this in.

Yes. This seems hacky.  I don't fully understand why vtysh
is invoked this way.

New output:

sharpd@eva:~/frr3$ sudo vtysh -N one

Hello, this is FRRouting (version 8.1-dev).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

eva# wr mem
Note: this version of vtysh never writes vtysh.conf
% Can't open configuration file /etc/frr/one/vtysh.conf due to 'No such file or directory'.
Building Configuration...
Integrated configuration saved to /etc/frr/one/frr.conf
[OK]
eva#

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
watchfrr/watchfrr.c
watchfrr/watchfrr.h
watchfrr/watchfrr_vty.c