CiscoDevNet / yangsuite

Cisco YANG Suite provides a set of tools and plugins to learn, test, and adopt YANG programmable interfaces such as NETCONF, RESTCONF, gNMI and more.
Other
244 stars 76 forks source link

did not see tailf:action on YANG explorer or NETCONF protocols #44

Closed song871216 closed 2 years ago

song871216 commented 2 years ago

Hi Dear,

my yang file using lots of tailf:action to do some operations. But I did not see those actions when I am trying to use NETCONF protocol to build up an action. my yang definition looks like:

grouping switch-over-group { tailf:action switch-over { tailf:info "Request that standby controller become master"; tailf:cli-configure-mode; tailf:actionpoint ha-action; output { uses common-groups:action-result; } } }

miott commented 2 years ago

The tailf annotations are not YANG standards and are used in Cisco devices for development. The Cisco models with tailf annotations do not get released to the public. YANG Suite only processes YANG standards described in RFC 7950. What is you use case?

song871216 commented 2 years ago

Hi Miott,

we are using ncs/nso 4.x to manage devices to play the NMS role. ncs talk to device use netconf, and in NMS we want to use ncs netconf NBI to provide service.

In our yang in NMS we use lots of tailf annotations which can work in ncs_cli.

miott commented 2 years ago

YANG Suite does not process any tailf annotations. You must debug this using NCS. Refer to tailf annotation documentation and contact tailf for technical support. I will add that the tailf annotations can sometimes be mimicked by adding the actual NETCONF message containing all the details. For example, there may be a full NETCONF message you can send that will do a switchover.