08-21-2018 01:06 AM
We want to call an action with parameters by Python in an NSO action, There is an maapi.requestAction(parms,"url") in Java, like : maapi.requestAction(params, "/ncs:devices/ncs:partial-sync-from")
Do we have an similarity method in Python? It's would be really appreciate for your idea.
Solved! Go to Solution.
08-21-2018 01:14 AM
There are two options:
1. You have a _ncs.maapi.request_action call, there is an example in
./service-provider/mpls-vpn-layered-service-architecture/create-vpn.py
2. With maagic you can call actions directly on on the objects, if you have a device node dev you can simply do:
r = dev.sync_from()
08-21-2018 01:14 AM
There are two options:
1. You have a _ncs.maapi.request_action call, there is an example in
./service-provider/mpls-vpn-layered-service-architecture/create-vpn.py
2. With maagic you can call actions directly on on the objects, if you have a device node dev you can simply do:
r = dev.sync_from()
08-21-2018 01:37 AM
03-13-2019 02:44 AM
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