diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-27 05:20:22 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 22:28:40 +0100 |
commit | 42d6b864cdce2e4477a14eae639bc22aa9fc1118 (patch) | |
tree | 7934a1ec487ed1f7e6649abe4c5cfb903bc918e3 /python | |
parent | lib: use shared candidate between vty and mgmtd client (diff) | |
download | frr-42d6b864cdce2e4477a14eae639bc22aa9fc1118.tar.xz frr-42d6b864cdce2e4477a14eae639bc22aa9fc1118.zip |
build: remove mgmtd exception from xref2vtysh
We may actually need to send CLI commands to mgmtd and another daemon at
the same time, for example, if this daemon is not mgmtd-converted. The
only daemon this exception protects is staticd. But we don't actually
need any configuration commands in staticd, so just remove the exception
and don't install unnecessary commands to staticd.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'python')
-rw-r--r-- | python/xref2vtysh.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/python/xref2vtysh.py b/python/xref2vtysh.py index 1760588ca..91ccba64f 100644 --- a/python/xref2vtysh.py +++ b/python/xref2vtysh.py @@ -324,17 +324,7 @@ class CommandEntry: def load(cls, xref): nodes = NodeDict() - mgmtname = "mgmtd/libmgmt_be_nb.la" for cmd_name, origins in xref.get("cli", {}).items(): - # If mgmtd has a yang version of a CLI command, make it the only daemon - # to handle it. For now, daemons can still be compiling their cmds into the - # binaries to allow for running standalone with CLI config files. When they - # do this they will also be present in the xref file, but we want to ignore - # those in vtysh. - if "yang" in origins.get(mgmtname, {}).get("attrs", []): - CommandEntry.process(nodes, cmd_name, mgmtname, origins[mgmtname]) - continue - for origin, spec in origins.items(): CommandEntry.process(nodes, cmd_name, origin, spec) return nodes |