'Get end state info'

def get_end_state(self):

    dldp_conf = dict()
    self.dldp_conf = self.get_dldp_exist_config()
    dldp_conf['enable'] = self.dldp_conf.get('dldpEnable', None)
    dldp_conf['time_interval'] = self.dldp_conf.get('dldpInterval', None)
    work_mode = self.dldp_conf.get('dldpWorkMode', None)
    if (work_mode == 'dldpEnhance'):
        dldp_conf['work_mode'] = 'enhance'
    else:
        dldp_conf['work_mode'] = 'normal'
    auth_mode = self.dldp_conf.get('dldpAuthMode', None)
    if (auth_mode == 'dldpAuthNone'):
        dldp_conf['auth_mode'] = 'none'
    elif (auth_mode == 'dldpAuthSimple'):
        dldp_conf['auth_mode'] = 'simple'
    elif (auth_mode == 'dldpAuthMD5'):
        dldp_conf['auth_mode'] = 'md5'
    elif (auth_mode == 'dldpAuthSHA'):
        dldp_conf['auth_mode'] = 'sha'
    else:
        dldp_conf['auth_mode'] = 'hmac-sha256'
    dldp_conf['reset'] = 'disable'
    if (self.reset == 'enable'):
        dldp_conf['reset'] = 'enable'
    self.end_state = copy.deepcopy(dldp_conf)
