'whether mlag interface attribute info exist'

def is_mlag_interface_info_exist(self):

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