'whether mlag global attribute info exist'

def is_mlag_global_info_exist(self):

    if (not self.mlag_global_info):
        return False
    if self.mlag_system_id:
        if self.mlag_priority_id:
            if ((self.mlag_global_info['lacpMlagSysId'] == self.mlag_system_id) and (self.mlag_global_info['lacpMlagPriority'] == self.mlag_priority_id)):
                return True
        elif (self.mlag_global_info['lacpMlagSysId'] == self.mlag_system_id):
            return True
    if self.mlag_priority_id:
        if self.mlag_system_id:
            if ((self.mlag_global_info['lacpMlagSysId'] == self.mlag_system_id) and (self.mlag_global_info['lacpMlagPriority'] == self.mlag_priority_id)):
                return True
        elif (self.mlag_global_info['lacpMlagPriority'] == self.mlag_priority_id):
            return True
    return False
