Same problem so I won't open a new thread, just bump this one.
I have an OperSubscriber like this:
def init(self):
self.register('/tfnm:ncs-state/ha/mode', priority=100)
and the error I'm getting is:
_ncs.error.Error: badly formatted or nonexistent path (8): Not a cdb path: /ncs-state
At the same time I can easily pull the data with maapi like this:
with ncs.maapi.single_read_trans('admin', 'system') as trans:
root = ncs.maagic.get_root(trans)
print(root.tfnm__ncs_state.ha.mode)
Any ideas why it is so?
EDIT:
Solved my issue the other way around by creating notification listener for _ncs.events NOTIF_HA_INFO