cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
388
Views
0
Helpful
2
Replies

error in compile of an action

mfontane
Cisco Employee
Cisco Employee

I’m creating  an action for the circuit create(one package) that shall refer to a device configuration attribute (different NED package)

  

tailf:action create-service {   

tailf:info "create a new service";   

tailf:actionpoint svo-circuit-app-create-service;   

input {   

leaf name {   

      type string;   

      description "name of circuit";   

}   

leaf src-device {   

description "src device";   

type leafref {

      path "/ncs:devices/ncs:device/ncs:name";

  }         

}        


leaf src-device-tp {   

      type leafref {

         path "/ncs:devices/ncs:device/ncs:config/svo-cln:circuit-termination-points/svo-cln:test";

       }

          must "/ncs:devices/ncs:device[ncs:name=current()/../src-device]";

  }

}

  

output {

leaf success {

type boolean;

}

  

leaf message {

type string;

description "Free format message.";

}


}

      }

  

And the test leaf is defined in this NED yang file

  

module svo-circuit-lite-node {

  

  namespace "http://cisco.com/yang/svo-circuit-lite-node";

  

  prefix "svo-cln";

  import cisco-svo-group-circuit { prefix svo-cgrp; revision-date 2017-11-24; }

     ….

  container circuit-termination-points {

     …..

 

    leaf test {

      description "REMOVE, used just for simplify the study of circuit creation";

      type string;

    }  

    …..   

  }

}

  

Because the 2 yang module are in different packages, the Makefile of the circuit package has the following reference to the other package

  

## Uncomment and patch the line below if you have a dependency to a NED  

## or to other YANG files   

YANGPATH += ../../svo-circuit-ned/src/yang

  

The bold line of the action has been wrote following the suggestion of the path found on the GUI  for the configuration of the leaf test

  

path.png

  

My issue comes at compiler time with this kind of error:

  

mfontane@mfontane-lnx:~/svo/svo-run/packages/svo-circuit-app$ make -C src

make: Entering directory '/home/mfontane/svo/svo-run/packages/svo-circuit-app/src'

/home/mfontane/svo/nso-4.5.1/bin/ncsc  `ls svo-circuit-app-ann.yang  > /dev/null 2>&1 && echo "-a svo-circuit-app-ann.yang"` \

     --yangpath ../../svo-circuit-ned/src/yang -c -o ../load-dir/svo-circuit-app.fxs yang/svo-circuit-app.yang

yang/svo-circuit-app.yang:59: error: the node 'circuit-termination-points' from module 'svo-circuit-lite-node' (in node 'config' from 'tailf-ncs') is not found

Makefile:40: recipe for target '../load-dir/svo-circuit-app.fxs' failed

make: *** [../load-dir/svo-circuit-app.fxs] Error 1

make: Leaving directory '/home/mfontane/svo/svo-run/packages/svo-circuit-app/src'

  

Where I’m wrong?


Thank in advance.

Mik

1 Accepted Solution

Accepted Solutions

frjansso
Cisco Employee
Cisco Employee

Please change the yang path to ../../svo-circuit-ned/src/ncsc-out/modules/yang

View solution in original post

2 Replies 2

frjansso
Cisco Employee
Cisco Employee

Please change the yang path to ../../svo-circuit-ned/src/ncsc-out/modules/yang

It works.

Thank You.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: