cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
36
Views
0
Helpful
2
Replies
Cisco Employee

yang action input options question

Hi Guys,

 

I’m trying to build yang model with an action which would take some input from the user:

……….

tailf:action self-test {

        tailf:info "Perform self-test of the service";

        tailf:actionpoint eLineJava-self-test;

        input {

          leaf mode {

           type enumeration {

             enum ping;

             enum show;

           }

          }

        }

        output {

          leaf success {

            type boolean;

          }

          leaf message {

            type string;

            description "Free format message.";

          }

        }

      }

………………………………

pyang and make do not produce any errors but when I run it on cli I do not see any input options to select from:

…………………….
admin@ncs# services eLineJava eLineJava01 self-test ?
Possible completions:
  |  <cr>
admin@ncs# services eLineJava eLineJava01 self-test
………………………………………….

 

Is there a reason why?

 

  Thanks

Everyone's tags (5)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: yang action input options question

Try to TAB in the cli and you'll see, you can also mark the input param as mandatory - if that is what you want.

View solution in original post

2 REPLIES 2
Cisco Employee

Re: yang action input options question

Try to TAB in the cli and you'll see, you can also mark the input param as mandatory - if that is what you want.

View solution in original post

Highlighted
Cisco Employee

Re: yang action input options question

Seems like ncs was not reloading package correctly. I restarted ncs and now it works fine.

Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.