ConfD User Community

Callpoint or valpoint didn't works with no form command with a container


#1

Hello,

I’m looking to use the tailf:cli-show-no in a container. I’m enter my command as well “no test service 2” and i want to show “no test service 2” with show run or only “no test” if i write “no test” but i m never going in my validation point or in my callpoint. If i remove tailf:cli-show-no and i’m using the normal form test service 2 i’m going in my callpoint and valpoint.

Do i have to change my container ? There is an other way to solve this problem ?

   container test {
        tailf:validate validate_vp_test {
          tailf:dependency '.';
        }
        tailf:callpoint callpoint_test {
          tailf:transaction-hook node;
          tailf:config "true";
        }

        leaf service {
          tailf:callpoint callpoint_test {
            tailf:transaction-hook node;
            tailf:config "true";
          }
          default "1";
          type enumeration {
            enum "1" {
              value 1;
            }
            enum "2" {
              value 2;
            }
            enum "3" {
              value 4;
            }   
          }
          tailf:cli-optional-in-sequence;
        }
        tailf:cli-sequence-commands {
          tailf:cli-reset-siblings;
        }
        tailf:cli-show-no;
      }

#2

Make your container into a presence container, then you can skip the cli-show-no too.
https://tools.ietf.org/html/rfc7950#section-7.5.1