admin_state = cdb.get(cdb_socket, path)
The expectation is to get a string value but I get something like this:
Admin State: (<_ncs.Value type=C_ENUM_HASH(28) value='enum<3>'>,)
I just need the value i.e. 'enum<3>'. How to fetch that?
cdb.get returns a 'Value' object, as you see above.
If you only want 'enum<3>', that is easy - just use Python's builtin str() method on the returned _ncs.Value object.
If you want the corresponding label in that enumeration, it is a bit more involved.
/Ram