03-10-2024 06:19 AM
Hi all,
Could you help me on the following .. in short, how can i do re-deploy with commit params from python ..
i can commit a service with commit params from cli and python with success. for example :
from cli :
dd-rfs d1
commit commit-queue bypass
and from python :
Solved! Go to Solution.
04-03-2024 08:04 AM
having the same name "dry-run", it's an action input parameter to action re-deploy, not a commit parameter, so you need to do something like this:
service_instance = ncs.maagic.get_node(t, PATH_TO_YOUR_SERVICE_INSTANCE)
action = service_instance.re_deploy
action_p = action.dry_run.create()
action(action_p)
04-03-2024 08:04 AM
having the same name "dry-run", it's an action input parameter to action re-deploy, not a commit parameter, so you need to do something like this:
service_instance = ncs.maagic.get_node(t, PATH_TO_YOUR_SERVICE_INSTANCE)
action = service_instance.re_deploy
action_p = action.dry_run.create()
action(action_p)
04-07-2024 03:24 AM
this is a working copy of bypassing a commit-queue.
instance = ncs.maagic.get_node(t, PATH_TO_YOUR_SERVICE_INSTANCE)]
inputs = instance.re_deploy.get_input()
inputs.commit_queue.create().bypass.create()
inputs.no_networking.create()
instance.re_deploy(inputs)
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