ConfD User Community

Storing global node values in the external database


#1

Hi,

We are using tailf:callpoint to store data in the external database.
Any suggestion to store global variables in the external database using tailf:callpoint.

If for example our module is something like below …

module test {

  namespace "http://tail-f.com/ns/example/test";
  prefix test;

     import tailf-common {
    prefix tailf;
  }
      tailf:callpoint ericsson_cp;  //this is giving compilation error.

     leaf global_leaf {
       type string;
     }

     container managedElementId {
      leaf userLabel {
        type string;
      }
      leaf siteLocation {
        type string;
      }

      leaf union_test {
           type union {
               type int64;
               type string;
         }

      }
}

If we want to store the value of global_leaf in external database.

Thanks & Regards,
Azeem


#2

That is expected - from the tailf_yang_extensions(5) manual page (the same info is found in the tailf-common.yang module):

   The callpoint statement can be used in: leaf, leaf-list, list,
   container, refine, and grouping.

I.e. the statement indicates that data for the parent node (and its descendants, if any) is provided by an external data provider. If you want it to apply for global_leaf, it should be:

 leaf global_leaf {
   type string;
   tailf:callpoint ericsson_cp;
 }

If you want the callpoint to apply for multiple top-level nodes in a module, you will need to repeat the callpoint statement (using the same callpoint name is fine) for each node.


#3

Thanks for the support. Yes, we can implement as you mentioned. I was looking out for some other alternatives to avoid multiple declarations of call point.