Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Hi All,
I am looking for Python/YANG tailf:cli-completion-actionpoint example where custom list can be displayed in CLI mode from a completion action callback.
I tried the below example:
YANG Pseudo code where actionpoint is defined
leaf ...
Hi All,
I have written a sample java action-demo to explore how tailf:cli-completion-actionpoint ( Tail-f YANG CLI extensions) works.
However when i invoke the completion-actionpoint (from CLI) I always get below errors in log files
ncs.log
no reg...
Hi Imanor,As per above logic, t.apply_params(True, cp) will always commit the transaction.
We have 1 scenario where we just need to show dry-run output without doing actual commit from an action.So is it possible to do so ?We are aware of the old way...
Hi,
Please follow the code below,
Option1: Composite keys of service can be accessed using kp[0][0], kp[0][1], kp[0][2].
Option2: Also you can get the reference to service under creation and read the service keys
Like below
new_svc = ncs.maagic.cd(ro...
I solved the problem, Here are the changes in Callback class
class ActionCallbacks(object):
def __init__(self, log):
self.log = log
self.logPrefix = 'ActionCallbacks:'
self.daemon = Daemon("l3vpn-cli-completion-daemo...