I have a query. We have a callpoint on yang leaf which has a validation callpoint which is being moved for upgrade scenario . How does one migrate the call point on package reload . As the old data is getting validated at phase 0 , the code errors out as call-point not found.
This is the approach currently I am trying to follow in upgrade script. Is the approach correct ? What is the ideal approach? I understand that there is no validate option .
Socket ctrl_socket= new Socket("localhost",Conf.NCS_PORT);
final Dp dp = new Dp("server_daemon",ctrl_socket);
dp.registerAnnotatedCallbacks(new Myvalidator());
dp.registerDone();
Thread dpTh = new Thread(new Runnable() {
public void run() {
try {
while (true) dp.read();
} catch (Exception e) {
e.printStackTrace();
return;
}
}
});
dpTh.start();
Appreciate all the help.