diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2023-03-22 12:37:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-22 12:37:14 -0500 |
| commit | b817ff9c8a44a7ec6aceb114d90f8a867640bde9 (patch) | |
| tree | 837cacaed68d661b949d13c8449bf0c9d0ace339 /python/xref2vtysh.py | |
| parent | 51655ef01a89f4e31c1ffe89f702ba975c106465 (diff) | |
| parent | 0b645fd2168d977878b1cf0d14eff3755ca66e05 (diff) | |
Merge pull request #13059 from FRRouting/dev/mgmtd
Introduce the centralized management daemon
Diffstat (limited to 'python/xref2vtysh.py')
| -rw-r--r-- | python/xref2vtysh.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/xref2vtysh.py b/python/xref2vtysh.py index a4f8560bb0..b5873a3aac 100644 --- a/python/xref2vtysh.py +++ b/python/xref2vtysh.py @@ -325,7 +325,17 @@ 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 |
