- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
DevOps
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2018 01:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2019 02:44 AM
Thanks
