'get end state info'

def get_end_state(self):

    if (self.eth_trunk_id or self.dfs_group_id or self.mlag_id):
        self.mlag_info = self.get_mlag_info()
        if ((not self.mlag_system_id) and (not self.mlag_priority_id)):
            if self.mlag_info:
                self.end_state['mlagInfos'] = self.mlag_info['mlagInfos']
    if (self.mlag_system_id or self.mlag_priority_id):
        if self.eth_trunk_id:
            self.mlag_trunk_attribute_info = self.get_mlag_trunk_attribute_info()
            if self.mlag_trunk_attribute_info:
                if self.mlag_system_id:
                    self.end_state['lacpMlagSysId'] = self.mlag_trunk_attribute_info['lacpMlagSysId']
                if self.mlag_priority_id:
                    self.end_state['lacpMlagPriority'] = self.mlag_trunk_attribute_info['lacpMlagPriority']
        else:
            self.mlag_global_info = self.get_mlag_global_info()
            if self.mlag_global_info:
                if self.mlag_system_id:
                    self.end_state['lacpMlagSysId'] = self.mlag_global_info['lacpMlagSysId']
                if self.mlag_priority_id:
                    self.end_state['lacpMlagPriority'] = self.mlag_global_info['lacpMlagPriority']
    if (self.interface or self.mlag_error_down):
        self.mlag_error_down_info = self.get_mlag_error_down_info()
        if self.mlag_error_down_info:
            self.end_state['mlagErrorDownInfos'] = self.mlag_error_down_info['mlagErrorDownInfos']
