01-26-2018 11:41 PM - edited 03-01-2019 04:05 AM
I am having a transCallback on a augmented container where should i write the java callback ? Should it be on the package a where the call point is here or on the other where it is getting augmented
module abc{
namespace "http://haha.com/ns/abc";
prefix abc;
import example {
prefix example1;
}
augment "/example1:example-sample/test" {
container assist {
tailf:callpoint analyse;
uses example1:samplegrouping;
}
}
}
01-28-2018 02:17 PM
Hi,
I haven't done this for some time now. I suspect the callback should be in the java file associated with the module (ABC). This ensures software modularity. The defined action would be in the "abc" namespace.
Also it avoids the possible of having a developer include only the module example1 with the action-callback routine and not having the actual YANG definition come along with it.
Thanks.
01-28-2018 03:32 PM
Hi ,
Thanks for the reply.I have created a datacallback on the same package where the module abc is present and not on the augmented module . But the java callback with callType = DataCBType.GET_ELEM and @TransCallback(callType = TransCBType.INIT) does not get invoked or called.But i can see the call point registered on the ncs-state.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide