Hi all,
I'm running NSO services on Nokia 7360 devices and alu-isam NED (ncs-4.7.8-alu-isam-1.2).
I need to investigate when NED software could put a template command in "shutdown".
Taking a look into NED implementation I've found shutdown management in java object IsamNedCli.java.
Besides in MetaDataTransformer.java I find the definition of a meta command SHUTDOWN_BEFORE_DELETE
defined as follows:
...
case SHUTDOWN_BEFORE_DELETE:
/*
* Some list entries must be shutdown properly before they
* can be deleted.
*/
if (!line.trim().startsWith("no ")) {
break;
}
outlines.add(line.replaceAll("no\\s+(.*)$", "$1 shutdown"));
break;
...
My question is simple:
in which cases is it expected that a command is shutdown?
Thanks for help,
Giuliana
Solved! Go to Solution.
Thank you forn the tip!
I've found in the yang model the annotation that you're referring to. At this point, I need to focus on the section "// service / vpls * " and in particular on the leaf "shutdown" which has default value true, because my problem is to understand in which case NED sets this default value (true) instead of setting leaf value "shutdown" to false as setted by service template command. It could be when NED software has to make a rollback ? A rollback request can be interpreted as delete operation by NED software?
I report below a piece of NED yang model, thanks for reply!
.....
.....
// service / vpls *
list vpls {
tailf:info "Configure a Virtual Private LAN Service";
tailf:cli-recursive-delete;
tailf:meta-data "shutdown-before-delete";
key service-id;
leaf service-id {
type id;
}
.....
.....
// service / vpls * / shutdown
leaf shutdown {
tailf:info "Enable/disable service";
tailf:cli-boolean-no;
tailf:cli-show-with-default;
tailf:ned-default-handling report-all;
type boolean;
default true;
}
}
}
Thank you forn the tip!
I've found in the yang model the annotation that you're referring to. At this point, I need to focus on the section "// service / vpls * " and in particular on the leaf "shutdown" which has default value true, because my problem is to understand in which case NED sets this default value (true) instead of setting leaf value "shutdown" to false as setted by service template command. It could be when NED software has to make a rollback ? A rollback request can be interpreted as delete operation by NED software?
I report below a piece of NED yang model, thanks for reply!
.....
.....
// service / vpls *
list vpls {
tailf:info "Configure a Virtual Private LAN Service";
tailf:cli-recursive-delete;
tailf:meta-data "shutdown-before-delete";
key service-id;
leaf service-id {
type id;
}
.....
.....
// service / vpls * / shutdown
leaf shutdown {
tailf:info "Enable/disable service";
tailf:cli-boolean-no;
tailf:cli-show-with-default;
tailf:ned-default-handling report-all;
type boolean;
default true;
}
}
}