diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-14 15:55:46 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-14 19:00:22 +0100 |
commit | b507ad54b4baaacf796d79fbb9e6bfbe1f521405 (patch) | |
tree | df0006aff753f35bc674763d3b501c9e3fee33fd /mgmtd/mgmt_main.c | |
parent | lib: fix yang_lyd_trim_xpath (diff) | |
download | frr-b507ad54b4baaacf796d79fbb9e6bfbe1f521405.tar.xz frr-b507ad54b4baaacf796d79fbb9e6bfbe1f521405.zip |
mgmtd: add option to specify netns as the vrf backend
mgmtd has to know if netns is used as the vrf backend to correctly
process interface names in northbound.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'mgmtd/mgmt_main.c')
-rw-r--r-- | mgmtd/mgmt_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mgmtd/mgmt_main.c b/mgmtd/mgmt_main.c index 72bb353b2..0f2bdacdc 100644 --- a/mgmtd/mgmt_main.c +++ b/mgmtd/mgmt_main.c @@ -22,6 +22,7 @@ static const struct option longopts[] = { {"skip_runas", no_argument, NULL, 'S'}, {"no_zebra", no_argument, NULL, 'Z'}, {"socket_size", required_argument, NULL, 's'}, + {"vrfwnetns", no_argument, NULL, 'n'}, {0}}; static void mgmt_exit(int); @@ -237,6 +238,9 @@ int main(int argc, char **argv) case 's': buffer_size = atoi(optarg); break; + case 'n': + vrf_configure_backend(VRF_BACKEND_NETNS); + break; default: frr_help_exit(1); break; |