Hi ,
I am writing java program which generates notification and confD should recieve it .
When my yang file does not contain list , it generates and receives notification on confd successfully.
But , When I add list xyz to yang , imy java file generates notification but confd does not receive it.
My yang file looks like below.
module nf {
namespace "http://abc.com/ns/ab/nf";
prefix nf;
notification "tc_event" {
leaf m {
type string;
}
leaf t{
type string;
}
list xyz{
leaf a {
type string;
}
leaf b {
type string;
}
}
}
}
My java program looks like the sample usage Dp
Socket ctrlSocket = new Socket("127.0.0.1", Conf.PORT);
// This is the main Data Provider instance. "dp"
Dp dp = new Dp("hosts_daemon", ctrlSocket);
mynotif myn = new mynotif();
// create Dp Notification stream (you may create many)
DpNotifStream stream = dp.createNotifStream("mystream");
// send a notification
ConfXMLParam[] vals =
new ConfXMLParam[] {
new ConfXMLParamStart(myn.hash(), mynotif.myn_my_notif),
new ConfXMLParamValue(myn.hash(), mynotif.myn_m,
new ConfBuf(m)),
new ConfXMLParamValue(myn.hash(), mynotif.myn_t,
new ConfBuf(t)),
new ConfXMLParamStart(myn.hash(), mynotif.myn_my_notif),
new ConfXMLParamValue(myn.hash(), mynotif.myn_a,
new ConfBuf(a)),
new ConfXMLParamValue(myn.hash(), mynotif.myn_b,
new ConfBuf(b)),
new ConfXMLParamStop(myn.hash(), mynotif.myn_my_notif)
new ConfXMLParamStop(myn.hash(), mynotif.myn_my_notif)
};
stream.send(ConfDatetime.getConfDatetime(), vals);
Please tell me how can I receive the notification on confD side when I include list in my yang file.