def fix_mirror_to(self, props):
    for policy_rule in props['entries']['policy_rule']:
        service = policy_rule['action_list']['mirror_to']
        if service:
            try:
                si_obj = self.vnc_lib().service_instance_read(id=service)
            except:
                si_obj = self.vnc_lib().service_instance_read(fq_name_str=service)
            policy_rule['action_list']['mirror_to'] = vnc_api.MirrorActionType(analyzer_name=si_obj.get_fq_name_str())
def fix_mirror_to(self, props):
    for policy_rule in props['entries']['policy_rule']:
        service = policy_rule['action_list']['mirror_to']
        if service:
            try:
                si_obj = self.vnc_lib().service_instance_read(id=service)
            except:
                si_obj = self.vnc_lib().service_instance_read(fq_name_str=service)
            policy_rule['action_list']['mirror_to'] = vnc_api.MirrorActionType(analyzer_name=si_obj.get_fq_name_str())