VNF Primitive Upgrade
From OSM Public Wiki
DISCLAIMER: This page is being updated to reflect changes required for Release FOUR.
The purpose of the Upgrade primitive is to perform an upgrade of operational software on your VNF.
Implementing the primitive is optional.
@when('actions.upgrade') def upgrade_vnf(): err = '' try: # Run the command(s) necessary to perform a safe software upgrade of your VNF result, err = charms.sshproxy._run("/srv/myvnf/upgrade.sh") except: action_fail('command failed:' + err) else: action_set({'outout': result}) finally: clear_flag('actions.upgrade')
For a full example of creating a VNF charm, please see Creating your own VNF charm (Release FOUR).