cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
285
Views
0
Helpful
1
Replies

How to run upgrade class manually for cdb in NSO?

Elvin J
Level 1
Level 1

Hello, I have class called  class Upgrade(ncs.upgrade.Upgrade), I enabled this class in package-meta-data.xml. Now I want to run it manually because when I run packages reload it does not run upgrade.py file. Is there any way to run? only way I found is to remove docker container with volumes, but in this case I lose my data in CDB. 


Could you please give some hints ?

1 Reply 1

huayyang
Cisco Employee
Cisco Employee

the upgrade component is run by NSO automatically to handle instance data changes according to schema changes(meaning there's a schema change in the package reload), it can't be invoked manually.

why do you want to run it manually?