ā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.
ā10-22-2023 09:32 PM
ā10-22-2023 09:32 PM
ā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()
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