ConfD User Community

Is there any option to add a command in multiple modes in clispec?

I need to copy couple of commands from operational mode to config mode. These available commands are rendered using clispec file. Is there any optimal way of rendering it to configure mode instead of copying all the contents from operational mode to configure mode? Thanks in advance.
For example:

< operationalMode >



    <cmd name="cmd1">
      ...
      ...
   </cmd>
</operationalMode>

No, I don’t think clispec supports anything that would solve the copy-paste problem. If you have many such commands, you may consider generating your clispec file - simple text processing tools like awk would be enough here.

Minor correction: there is confd setting /confdConfig/cli/mixedMode that can make all oper-mode commands available in the config mode. It does not allow you to pick your set of oper-mode commands.