I have to read the non-local context name from configuration CLI ,the container called servers server .
context.yang file
augment "contexts" {
list context {
key "context-name" ;
ordered-by user;
leaf context-name {
type string ;
description "give the context-name " ;
}
}
server.yang file
augment "contexts/context" {
container servers {
list server {
key name;
leaf name {
type string ;
description
"Give the server name"
}
}
In this case, i want to get the context name during the config CLI instance at run time or somehow want to know under which context name that cli run .
here we can have the multiple context name also, but i want to extract only which has used during the confi CLI
(config)# contexts context “context-name” servers server port
Please help me on this issue