Symptom
As part of EDT support is being extended to Cisco-pfi-im-cmd-ctrlr-oper model.
The EDT message prints the key Controller name as sysdb encoded string instead of external format e.g. "Optics0%2f0%2f0%2f0". It is expected to display "Optics0/0/0/0". For example in the below message, key is sysdb encoded string whereas controller (in content) is in external format-{"node_id_str":"ios","subscription_id_str":"app_TEST_200000001","encoding_path":"Cisco-IOS-XR-pfi-im-cmd-ctrlr-oper:controllers/controllers/controller","collection_id":"2","collection_start_time":"1652176017703","msg_timestamp":"1652176017703","data_json":[{"timestamp":"1652176017702","keys":[{"controller-name":"Optics0%2f0%2f0%2f0"}],"content":{"controller":"Optics0/0/0/0","state":"im-state-shutdown"}}],"collection_end_time":"1652176017703"}
Data for same controller is also published on OCIF sensor path upon controller shutdown but there the format is correct for key as well as content-
{"node_id_str":"ios","subscription_id_str":"app_TEST_200000001","encoding_path":"openconfig-interfaces:interfaces/interface/state","collection_id":"6","collection_start_time":"1652182175034","msg_timestamp":"1652182175034","data_json":[{"timestamp":"1652182175034","keys":[{"name":"Optics0/0/0/0"}],"content":{"name":"Optics0/0/0/0","type":"iana-if-type:opticalChannel","mtu":0,"loopback-mode":false,"enabled":false,"ifindex":18,"admin-status":"DOWN","oper-status":"DOWN","last-change":"1652182168800298227","logical":true,"management":false,"cpu":false,"counters":{"carrier-transitions":"4"}}}],"collection_end_time":"1652182175034"}
--------
Conditions
This will ensure to have a same out put format for all type of EDT request