cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
910
Views
5
Helpful
2
Replies

update operational value on a service in CLI

Hello dears,

I have a service with Yang that containe a leaf that is marqued as operational information:

list my_device {
key name;
leaf name{
type string;
}
leaf migrated {                   
                    type boolean;
                    config false;
                    tailf:cdb-oper {
                        tailf:persistent true;
                    }
}

}

I'll to set manualy the value of migrated  for an instance from the CLI.

 

regards.

1 Accepted Solution

Accepted Solutions

Nabsch
Spotlight
Spotlight

Hello , 

You cannot modify operational value in CLI directly but you  can write an action in Python that take some input and change the value in Python by calling this action from CLI

 

 

View solution in original post

2 Replies 2

Nabsch
Spotlight
Spotlight

Hello , 

You cannot modify operational value in CLI directly but you  can write an action in Python that take some input and change the value in Python by calling this action from CLI

 

 

u.avsec
Spotlight
Spotlight

Like Nabsch said, you can't.

 

That is what "config false;" yang line does.

 

Apart from action, another option is writing a cli augmentation script in which you access said value with maapi