09-24-2018 06:17 AM
Hello,
I'm trying to write a package upgrade script. The one in https://community.cisco.com/t5/nso-developer-hub-documents/nso-service-upgrade-with-python/ta-p/3640379 seems to work fine but I would like to avoid keeping the old YANG leafs.
In Java there's a attachInit() method to do this. I can see a attach_init() in the Python API but I cannot get it to work. Any working examples out there?
Solved! Go to Solution.
09-27-2018 11:54 PM
I finally managed to write an update script in Python. We had to start ncs in --start-phase0 and use start_phase(), init_upgrade(), perform_upgrade() and commit_upgrade().
In-service upgrade would be much nicer though. I will ask our Cisco rep for a feature request.
Thanks!
09-27-2018 04:45 AM
09-27-2018 11:54 PM
I finally managed to write an update script in Python. We had to start ncs in --start-phase0 and use start_phase(), init_upgrade(), perform_upgrade() and commit_upgrade().
In-service upgrade would be much nicer though. I will ask our Cisco rep for a feature request.
Thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide