Referencing a command tree from another view

36 views
Skip to first unread message

Amol Lad

unread,
Aug 23, 2024, 12:00:57 AM8/23/24
to klish
Hi,

I'm using Klish 2.2.5 and have a query regarding referencing a command in a view from another view. For example:

<VIEW name="second-view">

        <COMMAND name="interface" ref="interface@main-view" help="Configure network interface"/>

</VIEW>

The "main-view" contains many commands and "interface" is one of them. The "interface" command has many sub commands. I want to reference all the "interface" commands in the "second-view". The above alias only pulls the "interface" command but not any sub-command. I cannot use <NAMESPACE> as that will pull in all the commands in the main-view. Any suggestion how to achieve this?

Thanks
Amol

Serj Kalichev

unread,
Aug 24, 2024, 8:13:04 AM8/24/24
to kl...@googlegroups.com
Hi

You can create a service view "interface-view" and put all needed command there.
Then include it into main-view and into second-view using NAMESPACE.


23.08.2024 07:00, Amol Lad пишет:
--
You received this message because you are subscribed to the Google Groups "klish" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klish+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/klish/f054795b-af3f-4044-a158-506a5c186cd8n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages