VNF Primitive Upgrade
From OSM Public Wiki
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:
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')