Hi,
I want to remove some commands from confd_cli i.e. I don’t want them to be available for any user.
I’ve examined the manual and also seen this discussion:
but I still need to clear some things up.
Let’s use these two confd_cli commands as examples: ‘source’ and ‘telnet’.
‘source’ does not have an entry in clispec confd.cli so I guess this makes it a built-in command.
Hence by adding a
<delete src="source"/>
inside operationalMode >> modifications, recompiling the confd.cli and restarting confd we get what we want.
I am not sure if I am handling commands similar to ‘telnet’ correctly.
For this command I have removed its whole entry from within the confd.cli clispec file.
By recompiling and restarting again I get what I want but the manual states:
Note that commands that are auto-rendered from the data model cannot be removed using this modification.
To remove an auto-rendered command use the ‘tailf:hidden’ element in the data
model.
I am assuming that ‘telnet’ (and any other command that has an entry in confd.cli) does not fall under this category since this ‘tailf:hidden’ element sounds to me like it only hides but not disables?
I guess what I am looking for is a confirmation that:
if command is present in confd.cli
then delete its entry
else use the <delete /> element
TIA