Not able to create callpoint to grouping

Hi ,
I am using confd-7.3
I have external-io yang as below:

 +--rw external-io
     +--ro input* [name]
     |  +--ro name       
     |  +--ro port-in?   
     |  +--ro line-in?   
     +--ro output* [name]
     |  +--ro name        
     |  +--ro port-out    
     +--rw output-setting* [name]
        +--rw name        
        +--rw line-out?   

external-io is a group.I am trying to attach callpoint to external-io group
through annotation,but it is giving error while compiling.

I have o-ran-external-io-ann.yang as below :

module o-ran-externalio-ann {

  yang-version 1.1;
  namespace "urn:o-ran:external-io:1.0";
  prefix io;
  
  import tailf-common {
    prefix tailf;
  }
tailf:annotate "/io:external-io-grouping" {
tailf:callpoint cb_op_io;
} 
      
}

while executing confdc --annotate o-ran-externalio-ann.yang -c --no-features -
o o-ran-externalio.fxs o-ran-externalio.yang

I am getting error as:
o-ran-externalio-ann.yang:10: error: node ‘external-io-grouping’ not found
Can you please help me how in figuring out the mistake in annotation file.
I have Provided complete yang file o-ran-externalio.yang below:

    grouping external-io-group {
    list input {
      key "name";
      config false;
      leaf name {
        type string {
          length "1..255";
        }
      }
      leaf port-in {
        type uint8;
      }

      leaf line-in {
        type boolean;
        default true;
      }
    }

    list output {
      key "name";
      config false;
      leaf name {
        type string {
          length "1..255";
        }
      }
      leaf port-out {
        type uint8;
        mandatory true;
      }
    }

    list output-setting {
      key "name";
      leaf name {
        type leafref {
          path "/external-io/output/name";
          require-instance false;
        }
        mandatory true;
      }

      leaf line-out {
        type boolean;
        default true;
   
      }
    }
  }

Regards,
Biswajit

Hi,

The tailf:annotate extension annotate the resulting schema where the groupings have been expanded where they are used. If you want to annotate the YANG model statements, such as groupings, you need to use tailf:annotate-module/statement.

See for example this topic:

Regards

1 Like