- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 06:14 AM
Currently is there a way to access/read service metadata from Java/Python APIs?
We have to find service instances that are not fully reconciliated, from a large list of service instances.
Any suggestions?
Solved! Go to Solution.
- Labels:
-
Developer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 09:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 09:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 08:02 AM
Thanks! that works, here is an example:
import ncs.maapi as maapi
import ncs.maagic as maagic
m = maapi.Maapi()
m.start_user_session('admin','system')
t = m.start_write_trans()
root = maagic.get_root(t)
val = _ncs.maapi.get_attrs(m.msock, t.th, [0x80000002], '/devices/device{DEV}/config/xpon:interface/gpon-onu{1 3 6 50}')
refcount = val[0].v.as_pyval()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 08:50 AM
Hi. Is there any way to get the service metadata via the root object? For example:
xxxx.get_attrs(root.devices.device[‘blabla’].config.acl)
Thanks.
